Results 1 to 4 of 4

Thread: message-driven bean

  1. #1
    Join Date
    Sep 2004
    Posts
    23

    Default 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. #2
    Join Date
    Aug 2004
    Location
    New York, NY
    Posts
    74

    Default

    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 at 10:59 AM.

  3. #3
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    5

    Default

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

  4. #4
    Join Date
    Aug 2004
    Location
    London
    Posts
    164

    Default

    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
    James Strachan
    ------------------
    Open Source Integration
    Iona

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  5. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM

Posting Permissions

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