1 22 package org.jboss.ejb3.test.standalone.jms; 23 24 import javax.ejb.ActivationConfigProperty ; 25 import javax.ejb.MessageDriven ; 26 import javax.jms.Message ; 27 import javax.jms.MessageListener ; 28 import org.jboss.logging.Logger; 29 30 36 @MessageDriven (activationConfig = 37 { 38 @ActivationConfigProperty (propertyName="destinationType", propertyValue="javax.jms.Queue"), 39 @ActivationConfigProperty (propertyName="destination", propertyValue="queue/mdbtest") 40 }) 41 public class QueueTestMDB implements MessageListener 42 { 43 private static final Logger log = Logger.getLogger(QueueTestMDB.class); 44 45 46 47 public void onMessage(Message recvMsg) 48 { 49 System.out.println("QueueTestMDB onMessage"); 50 TestStatusBean.queueRan = true; 51 } 52 53 } 54 | Popular Tags |