1 22 package org.jboss.ejb3.test.standalone.embeddedjms; 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 public void onMessage(Message recvMsg) 46 { 47 System.out.println("QueueTestMDB onMessage"); 48 TestStatusBean.queueRan = true; 49 } 50 } 51 | Popular Tags |