posted 15 years ago
Hi All,
I am doing a POC on Transaction Mgmt with Weblogic & Websphere MQ. I am trying to crack this for a few days now but no luck. The flow is:
Stateless Session Bean (CMT) performs a 2 phase commit:
Lookup JMS ConnectionFactory from JNDI.
Calls POJO to send a message.
Lookup DataSource from JNDI.
Calls POJO to insert row in DB.
Commit/Rollback.
Issue:
Rollback on session context doesnt rollback the JMS message put. The DB transaction is rolled back but the JMS message is sent to the queue.
Code Snippets:
ejb-jar.xml
weblogic-jar.xml
Session Bean --> POJO Helper (Send JMS Message)
Any pointers would be helpful.
Thanks
Srinivas