[jboss-user] [JBoss Messaging] - Re: Integration between JBossMessaging Server 2.0 and Jboss
PeterJ
do-not-reply at jboss.com
Wed Oct 15 12:03:44 EDT 2008
Here is a simple MDB configured to listen to a particular topic:
package some.mdb;
|
| import javax.ejb.ActivationConfigProperty;
| import javax.ejb.MessageDriven;
|
| WireTap.annotation=@MessageDriven(activationConfig = {
| @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
| @ActivationConfigProperty(propertyName = "destination", propertyValue = "topic-name-goes-here")})
| public class SomeMDB implements MessageListener {
| public void onMessage(Message msg) {
| // handle the message
| }
| }
Package this MDB in a JAR file by itself and place the JAR file in the deploy directory.
That is all you need for basic configuration.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182454#4182454
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182454
More information about the jboss-user
mailing list