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

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

    Comment

    Working...
    X