Announcement Announcement Module
Collapse
No announcement yet.
BeanDef : merging List/map entries Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • BeanDef : merging List/map entries

    Hi

    I have a scenario where i have a Mgr bean which has list of bean references. The Mgr bean itself is part of common ocde which will be shared by different applications. Each of these applications will be defining a set of entries for the aforementioned list. Since both the apps will be running in the same VM there will be only one instance of the Mgr, so i need the entries defined by both applications to be loaded into this bean when it is created. what is the possible ways of doing this? Do i need to write some initialization code on the Mgr to locate all beans with the list and load them ?

    Sample
    Say i have a ProductListRepositoryMgrBean which has a property "List productList", and i need to add entries to it from two different beandefs..


    Thanks in advance

    Sam

  • #2
    combining maps?

    Is this what you're trying to do?
    http://forum.springframework.org/showthread.php?t=16423
    Last edited by robyn; May 14th, 2006, 09:01 PM.

    Comment


    • #3
      Hi

      thanks of the reference, but thats not what i was looking for. i'm currently using the MethodInvokingFactoryBean to achieve this.

      Sam

      Comment

      Working...
      X