KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > tutorial > embeddedwar > TopicTestMDB


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.tutorial.embeddedwar;
8
9 import javax.ejb.ActivationConfigProperty JavaDoc;
10 import javax.ejb.MessageDriven JavaDoc;
11 import javax.jms.Message JavaDoc;
12 import javax.jms.MessageListener JavaDoc;
13
14 /**
15  * Comment
16  *
17  * @author <a HREF="mailto:bill@jboss.org">Bill Burke</a>
18  * @version $Revision: 1.1 $
19  */

20 @MessageDriven JavaDoc(activateConfig =
21         {
22         @ActivationConfigProperty JavaDoc(propertyName="destinationType", propertyValue="javax.jms.Topic"),
23         @ActivationConfigProperty JavaDoc(propertyName="destination", propertyValue="topic/topictest")
24         })
25 public class TopicTestMDB implements MessageListener JavaDoc
26 {
27
28    public void onMessage(Message JavaDoc recvMsg)
29    {
30       System.out.println("TopicTestMDB onMessage");
31    }
32 }
33
Popular Tags