Results 1 to 2 of 2

Thread: Context Creation with AbstractMDB

Threaded View

  1. #1
    Join Date
    Aug 2004
    Location
    New York, NY
    Posts
    46

    Default Context Creation with AbstractMDB

    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?

    Thanks,
    Patrick
    Last edited by robyn; May 19th, 2006 at 05:28 AM.

Similar Threads

  1. Hibernate Long Session Per Flow?
    By akw in forum Web Flow
    Replies: 21
    Last Post: Dec 12th, 2005, 08:06 PM
  2. Replies: 2
    Last Post: Oct 13th, 2005, 02:47 PM
  3. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  4. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM
  5. Replies: 6
    Last Post: May 8th, 2005, 11:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •