KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > tutorial > mdb_deployment_descriptor > bean > ExampleMDB


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.mdb_deployment_descriptor.bean;
8
9 import javax.ejb.MessageDriven JavaDoc;
10 import javax.ejb.ActivationConfigProperty JavaDoc;
11 import javax.jms.Message JavaDoc;
12 import javax.jms.MessageListener JavaDoc;
13
14 public class ExampleMDB implements MessageListener JavaDoc
15 {
16    public void onMessage(Message JavaDoc recvMsg)
17    {
18       System.out.println("----------------");
19       System.out.println("Received message");
20       System.out.println("----------------");
21    }
22
23 }
24
Popular Tags