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 42 @MessageDriven (messageListenerInterface = MessageListener .class, 43 activationConfig = {@ActivationConfigProperty (propertyName = "destinationType", propertyValue = "javax.jms.Queue"), 44 @ActivationConfigProperty (propertyName = "destination", propertyValue = JMSManager.DEFAULT_QUEUE), 45 @ActivationConfigProperty (propertyName = "messageSelector", 46 propertyValue = "TYPE = 'org.objectweb.easybeans.tests.common.ejbs.mdb.containermanaged.basic.MDBQueue01'")}) 47 public class MDBQueue01 extends BaseInsertCallbackEvent { 48 49 52 public static final String MESSAGE_TYPE = "org.objectweb.easybeans.tests.common.ejbs.mdb.containermanaged.basic.MDBQueue01"; 53 54 58 public void onMessage(final Message message) { 59 super.log(MDBQueue01.class, CallbackType.ON_MESSAGE, MDBQueue01.class); 60 } 61 62 } 63 | Popular Tags |