[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Bug in transactional delivery in an MDB
clebert.suconic@jboss.com
do-not-reply at jboss.com
Fri Apr 20 12:49:05 EDT 2007
The only issue I'm having now, is when using a nonTransaction session, like this case, when inside an transactioned EJB:
| ConnectionFactory cf = jndi.lookup("java:/JmsXA");
| Connection conn = cf.createConnection();
| session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
| MessageProducer producer = session.createProducer(replyTo);
| producer.send(session.createTextMessage("NonTransactioned message"));
| session.close();
|
This following code, only works if we commit the UserTransaction, or if a BeanManagedTransaction completes its execution.
>From what I have seen on TCK tests, this is supposed to really behave as a nonTransacted session and this shouldn't require the userTransaction.commit to send that message.
Any thoughts?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039351#4039351
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039351
More information about the jboss-dev-forums
mailing list