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