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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Update DB in onMessage(MDB) when QueueSession is rollbacked?

Status
Not open for further replies.

murthypatnaik

Programmer
Feb 26, 2006
15
US
Hi, I have MDB, in onMessage(), I am sending an email. This is all in try block. In catch(), I am rollbacking qSession, as it would go back agin to queue. If the session is rollbacked, I need to update database with status, for this I am calling EJB. Here the problem is, After rollback, this ejb call also rollbacking. I need to update DB when QSession is rollbacked, Please suggest me in this case.

Thanks, Murthy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top