1 25 package org.objectweb.easybeans.tests.common.ejbs.mdb.containermanaged.basic; 26 27 import javax.ejb.ActivationConfigProperty ; 28 import javax.ejb.MessageDriven ; 29 import javax.jms.Message ; 30 import javax.jms.MessageListener ; 31 32 import org.objectweb.easybeans.tests.common.ejbs.entity.callbacklogger.CallbackType; 33 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.callbacklogger.BaseInsertCallbackEvent; 34 import org.objectweb.easybeans.tests.common.jms.JMSManager; 35 36 41 @MessageDriven ( 42 messageListenerInterface = MessageListener .class, 43 activationConfig = { 44 @ActivationConfigProperty (propertyName = "destinationType", propertyValue = "javax.jms.Topic"), 45 @ActivationConfigProperty (propertyName = "destination", propertyValue = JMSManager.DEFAULT_TOPIC), 46 @ActivationConfigProperty (propertyName = "messageSelector", 47 propertyValue = "TYPE ='org.objectweb.easybeans.tests.common.ejbs.mdb.containermanaged.basic.MDBTopic01'")}) 48 public class MDBTopic01 extends BaseInsertCallbackEvent{ 49 50 53 public static final String MESSAGE_TYPE = "org.objectweb.easybeans.tests.common.ejbs.mdb.containermanaged.basic.MDBTopic01"; 54 55 59 public void onMessage(final Message message) { 60 super.log(MDBTopic01.class, CallbackType.ON_MESSAGE, MDBTopic01.class); 61 } 62 63 } 64 | Popular Tags |