• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JMS 1.1 + Weblogic + Websphere MQ + XATransactions

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any ideas?

Can anyone try this example?
 
reply
    Bookmark Topic Watch Topic
  • New Topic