1 25 package org.objectweb.easybeans.tests.common.ejbs.mdb.containermanaged.timer; 26 27 import javax.ejb.ActivationConfigProperty ; 28 import javax.ejb.MessageDriven ; 29 import javax.jms.MessageListener ; 30 import javax.transaction.UserTransaction ; 31 32 import org.objectweb.easybeans.tests.common.ejbs.base.timer.BaseTimeoutCallbackAccess; 33 import org.objectweb.easybeans.tests.common.jms.JMSManager; 34 35 36 42 @MessageDriven (messageListenerInterface = MessageListener .class, activationConfig = { 43 @ActivationConfigProperty (propertyName = "destinationType", propertyValue = "javax.jms.Queue"), 44 @ActivationConfigProperty (propertyName = "destination", propertyValue = JMSManager.DEFAULT_QUEUE), 45 @ActivationConfigProperty (propertyName = "messageSelector", propertyValue = "TYPE = 'org.objectweb.easybeans." 46 + "tests.common.ejbs.mdb.containermanaged.timer.MDBTimeoutCallbackAccess00'")}) 47 public class MDBTimeoutCallbackAccess00 extends BaseTimeoutCallbackAccess{ 48 49 52 public static final String MESSAGE_TYPE = "org.objectweb.easybeans.tests.common.ejbs.mdb." 53 + "containermanaged.timer.MDBTimeoutCallbackAccess00"; 54 55 59 @Override 60 public String getName() { 61 return MDBTimeoutCallbackAccess00.class.getName(); 62 } 63 64 69 @Override 70 public boolean testUserTransaction(final UserTransaction utx) { 71 return utx==null; 72 } 73 74 } 75 | Popular Tags |