This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

Distributed transactions on MDB  RSS feed

 
Ramy Nady
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello ,

I have a scenario which I need your input.

A ) If there is a message driven bean with CMT and transaction attribute required

-begin MDB
-Write to DB
-Send message to queue
-Null pointer exception.

I know this is a system exception , the transaction will be rolled back , which mean all my changes to DB will be rolled back.

But what will happen to the message sent to JMS queue ?
It will be removed also ?

B) what will happen if the same above sequence appear with BMT

-Start transaction
-Write to DB
-Send message to queue
-Null pointer exception.

What about my changes at DB and my message at queue ?

Appreciate your response.
 
Tim Cooke
Marshal
Posts: 3838
221
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post duplicate questions. Let's lock this one and keep your other one.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!