Hi, I have a mdb @MessageDriven(name="QueryMessageBean", activationConfig = { | @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"), | @ActivationConfigProperty(propertyName="destination", propertyValue="queue/oatsMessageQueue"), | @ActivationConfigProperty(propertyName="maxSession", propertyValue="1") | | }) | @Name("queryMessageBean") | public class QueryMessageBean implements MessageListener { | | @Resource | private MessageDrivenContext context; | @In(create=true) | private MySqlToORDB mySqlToOrdb;
and on class header of MySqlToOrdb I have declared these transactionattribute @Stateless | @Name("mySqlToOrdb") | @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) | public class MySqlToORDbBean implements MySqlToORDB { | | @PersistenceContext | private EntityManager entityManager; I hope this helps View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128568#4128568 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128568 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user