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

  • message-driven bean


    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.



  • #2

    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 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.

    Last edited by Rod Johnson; Jan 18th, 2006, 10:59 AM.


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


      • #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...

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