May 2nd, 2013, 04:41 AM
SpringBeanAutowiringInterceptor used from multiple EJB's
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?
Tags for this Thread