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.Topic"), 39 @ActivationConfigProperty (propertyName="destination", propertyValue="topic/topictest") 40 }) 41 public class TopicTestMDB implements MessageListener 42 { 43 private static final Logger log = Logger.getLogger(TopicTestMDB.class); 44 45 public void onMessage(Message recvMsg) 46 { 47 System.out.println("TopicTestMDB onMessage"); 48 TestStatusBean.topicRan = true; 49 } 50 } 51 | Popular Tags |