Announcement Announcement Module
Collapse
No announcement yet.
SpringBeanAutowiringInterceptor used from multiple EJB's Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SpringBeanAutowiringInterceptor used from multiple EJB's

    Hello,

    I would like to use Spring to build my business backend but I have to use EJB to access it.

    So I used the SpringBeanAutowiringInterceptor interceptor to create my application context from an EJB.

    My question is : "What if I have more than one EJB?"
    (I have a SSB for synchone request and a MDB for asynchronous request ==> but they both do the same work so I want to reuse my spring beans)

    Will Spring build a new application-context for each of my EJB ? Or will each EJB use the same, unique, application-context?

    I think that the second option is the right one...

    Could someone confirm please?
Working...
X