We have a Web application that has a rather hefty ApplicationContext that loads via the normal ContextLoaderListener.
Next up, we have a few MDBs that we need to setup that also needs the use of the beans in this ApplicationContext. We noticed that every time ejbCreate is called on the MDB, that AbstractMDB creates the ApplicationContext from our definition files. This seems to be a very resource exspensive setup.
Is there a way for the MDBs and the Web app to share a common ApplicationContext? I looked at http://forum.springframework.org/showthread.php?t=11492 and the threads it references. And I basically understand what the SingletonBeanFactoryLocator is doing, but I am trying to understand where to instantiate it. And how I would get AbstractMDB to use it?