Announcement Announcement Module
Collapse
No announcement yet.
message-driven bean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • message-driven bean

    Hi,

    I now have a system with a session bean of which a method is invoked from a message-driven bean. I would like to try to convert this to a system without enterprise beans. I think the session bean part is not so difficult, but is it possible to make a MDB in Spring.

    thanks,

    Henk

  • #2
    Hi,

    The quick answer is that we are working on a 'lightweight message consumer' for the next release. James Strachan felt that bits of Geronimo might be reused for this effort. It is still in the early stages now.

    If your messaging needs are simple enough, you might consider using SingleConnectionFactory and the jms factory beans in the sandbox to help remove some of the tedium in writing a simple stand alone JMS consumer application. The link http://forum.springframework.org/showthread.php?t=9724 has some more information on those classes. Combined with the JMX support in the sandbox you also can quickly get some admin functionality to stop/start the listeners.

    You might find some of the work on Mule with Spring to be interesting. For more info read the articles on Spring and Mule, Part 1 and Part 2.


    Hope this helps.

    Cheers,
    Mark
    Last edited by Rod Johnson; Jan 18th, 2006, 11:59 AM.

    Comment


    • #3
      Also, have a look at Part 3 which describes how to send an receive Mule events via the applicationContext.

      Comment


      • #4
        FWIW we now have a lightweight Spring based JCA container which can be used to perform MDB like functionality in Spring.

        It should work with any JCA ResourceAdapter, so far we've only tested it with ActiveMQ's.

        You just need the activemq-container.jar module and then you should be able to deploy 'message driven pojos' in Spring in exactly the same way as if you were using MDBs inside an EJB container. Here's an example...

        http://cvs.activemq.codehaus.org/vie...ring.xml?r=1.1

        and the unit test case demonstrating it in action...

        http://cvs.activemq.codehaus.org/vie...st.java?r=HEAD

        Comment

        Working...
        X