aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes JMS 1.1 + Weblogic + Websphere MQ + XATransactions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS 1.1 + Weblogic + Websphere MQ + XATransactions" Watch "JMS 1.1 + Weblogic + Websphere MQ + XATransactions" New topic
Author

JMS 1.1 + Weblogic + Websphere MQ + XATransactions

Srinivas Nagesh
Greenhorn

Joined: Oct 27, 2002
Posts: 19
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
Trimoorthy Kotte
Greenhorn

Joined: Mar 31, 2006
Posts: 9
Hi, Hope you are using MQ binddings file for wrapping up MQ manager as connectionfactory and the MQ manager is on the local machine. the connectionfactory needs to be XA enabled.
Srinivas Nagesh
Greenhorn

Joined: Oct 27, 2002
Posts: 19
Yes i did, Here are the Bindings Definitions:

Connection Factory:



Queue:


[ July 05, 2008: Message edited by: Srinivas Nagesh ]
Srinivas Nagesh
Greenhorn

Joined: Oct 27, 2002
Posts: 19
Any ideas?

Can anyone try this example?
 
Consider Paul's rocket mass heater.
 
subject: JMS 1.1 + Weblogic + Websphere MQ + XATransactions