1 9 10 package testGenerateJavaEE50; 11 12 import javax.ejb.ActivationConfigProperty ; 13 import javax.ejb.MessageDriven ; 14 import javax.jms.Message ; 15 import javax.jms.MessageListener ; 16 17 21 @MessageDriven (mappedName = "jms/TestMDBQueueBean", activationConfig = { 22 @ActivationConfigProperty (propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"), 23 @ActivationConfigProperty (propertyName = "destinationType", propertyValue = "javax.jms.Queue") 24 }) 25 public class TestMDBQueueBean implements MessageListener { 26 27 public TestMDBQueueBean() { 28 } 29 30 public void onMessage(Message message) { 31 } 32 33 } 34 | Popular Tags |