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/tempmdbtest") 40 }) 41 public class TemporaryQueueTestMDB implements MessageListener 42 { 43 private static final Logger log = Logger.getLogger(TemporaryQueueTestMDB.class); 44 45 public void onMessage(Message recvMsg) 46 { 47 System.out.println("TemporaryQueueTestMDB onMessage"); 48 TestStatusBean.temporaryQueueRan = true; 49 } 50 } 51 | Popular Tags |