Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Roll back transaction using JMS API

Status
Not open for further replies.

i1nguyd0

IS-IT--Management
Oct 23, 2000
5
US
I wrote a listener program using JMS client API which will listen to the Queue and whenever there is a message got to the Queue, Listener will invoke OnMessage() to process the message against our DBMS. Right now if there is any thing wrong (Exception throws or whatever) happen during the process I have to resend this same message back to the Queue.

This is not efficient way. I wonder is there anyway inwhich we can set up JMS transaction as begintran/endtrans so we can Rollback JMS transaction when we need it.

Thanks
 
Let me clear this one again.

I wrote a listener program using JMS client API which will listen to the Queue and whenever there is a message got to the Queue, Listener will invoke OnMessage() to process the message against our DBMS. Right now if there is any thing wrong (Exception throws or whatever) happen during the process to update DNBS, I have to resend this same message back to the Queue, so the message can be reprocess otherwise it is COMMIT.


This is not efficient way. I wonder is there anyway inwhich we can set up JMS transaction as begintran/endtrans within OnMessage(), so we can Rollback JMS transaction when we need it.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top