KickJava   Java API By Example, From Geeks To Geeks.

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


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.Queue"),
23         @ActivationConfigProperty JavaDoc(propertyName="destination", propertyValue="queue/mdbtest")
24         })
25 public class QueueTestMDB implements MessageListener JavaDoc
26 {
27    public void onMessage(Message JavaDoc recvMsg)
28    {
29       System.out.println("QueueTestMDB onMessage");
30    }
31 }
32
Popular Tags