| 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/TestMDBTopicBean", activationConfig = { 22 @ActivationConfigProperty (propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"), 23 @ActivationConfigProperty (propertyName = "destinationType", propertyValue = "javax.jms.Topic"), 24 @ActivationConfigProperty (propertyName = "subscriptionDurability", propertyValue = "Durable"), 25 @ActivationConfigProperty (propertyName = "clientId", propertyValue = "TestMDBTopicBean"), 26 @ActivationConfigProperty (propertyName = "subscriptionName", propertyValue = "TestMDBTopicBean") 27 }) 28 public class TestMDBTopicBean implements MessageListener { 29 30 public TestMDBTopicBean() { 31 } 32 33 public void onMessage(Message message) { 34 } 35 36 } 37 | Popular Tags |