ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » MDB backout queue

Post new topic  Reply to topic
 MDB backout queue « View previous topic :: View next topic » 
Author Message
vadivel
PostPosted: Wed Dec 05, 2007 8:43 am    Post subject: MDB backout queue Reply with quote

Voyager

Joined: 05 Aug 2002
Posts: 79
Location: US

Hi,

I'm using a Message Driven Bean with Bean managed transaction (as per our standard) and I use a non-XA datasource (simple Datasource) to log the message to a Database (There is no way we can use XADatasource and container managed Transaction on the bean ).

Now, once I get the message I have to do multiple table updates/inserts and if there is an error doing these db operations, the message has to be backed out to the Backout queue.

Will there be any issues if I open a new session for the backout queue JMSSender from the MDB and put the message there and commit the session? Or what is the correct way of doing it, I want my db operations to be rolled back but the JMSSender (to backout queue) to be committed if any db issue occurs while logging the message.

Thanks,
Vadivel
Back to top
View user's profile Send private message Yahoo Messenger
fjb_saper
PostPosted: Wed Dec 05, 2007 4:33 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Well you do not specify your environment (i.e. app server)

Assuming the App server is IBM WAS all you need to do is specify backout threshold and backout queue on the local queue and raise the appropriate exception in your MDB when you had a problem on the DB.

Set the MDB's onMessage method as transactional: requires new

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MDB backout queue
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.