-
Aug 25th, 2011, 07:58 AM
#1
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,
-
Oct 27th, 2011, 06:28 AM
#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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules