Results 1 to 2 of 2

Thread: MDB in spring

  1. #1
    Join Date
    Aug 2011
    Posts
    3

    Default MDB in spring

    Hi,

    I am new to spring jms..already i developed mdb which listens to websphere queue and process the message.

    Now I want to convert this MDB ejb to spring based JMS listener so that i dont require ejb container.

    Can any one tell me how to develop spring jms similar to mdb ejb?

    In my mdb class i have the following annotations, where i can put these things in spring jms listener

    @MessageDriven(activationConfig = {
    @ActivationConfigProperty(propertyName = "destinationType", propertyValue =
    "javax.jms.Queue"),
    @ActivationConfigProperty(propertyName = "destination", propertyValue =
    "jms/app/EventQueue") })
    public class EventMDB implements MessageListener {

    }


    Thanks,

  2. #2
    Join Date
    Oct 2011
    Location
    Mumbai, India
    Posts
    213

    Default

    Have you taken a look at DefaultMessageListenerContainer?

    Alternatively you may use the Jms Adapters in Spring Integration

    Using these approaches you do not use the MDB that you have, but, achieve a similar behavior.

Posting Permissions

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