Announcement Announcement Module
Collapse
No announcement yet.
MDB + WEblogic + Spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MDB + WEblogic + Spring

    Hello,
    I am working on a project where in I have to write a MDB in weblogic. Can I use SPring framework along with MDB and weblogic?

  • #2
    Yes. As indicated in the reference documentation. See chapter 18.3.

    Comment


    • #3
      MDB + Spring

      Hello,

      I have a project where in I have to write a MDB, and as you all know I would be writing the code on the onMessage Method of the MDB. Now my problem is that I plan to use Spring and load the Context files that have the IOC beans. But Weblogic runs many instances of MDB. This means that the Context will be loaded once for each Instance. This would be a Coding flaw. How do I proceed?

      Kalyan

      Comment


      • #4
        Gotcha, The MDB needs to extend AbstractMessageDrivenBean from Spring and the context files needs to added in the ejb-jar.xml

        Comment


        • #5
          If you want multiple bean instances to share the same context, have a look at ContextSingletonBeanFactoryLocator.

          Regards,
          Andreas

          Comment

          Working...
          X