• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS 1.1 + Weblogic + Websphere MQ + XATransactions

 
Srinivas Nagesh
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes i did, Here are the Bindings Definitions:

Connection Factory:



Queue:


[ July 05, 2008: Message edited by: Srinivas Nagesh ]
 
Srinivas Nagesh
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any ideas?

Can anyone try this example?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic