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 » General Discussion » Muti-thread qMgr.backout rollbacked all of the messages?

Post new topic  Reply to topic
 Muti-thread qMgr.backout rollbacked all of the messages? « View previous topic :: View next topic » 
Author Message
xyzcom1983
PostPosted: Mon Nov 12, 2007 6:16 pm    Post subject: Muti-thread qMgr.backout rollbacked all of the messages? Reply with quote

Newbie

Joined: 04 Feb 2007
Posts: 7

Hi all,
I have an application which use MQ, and muti-thread to get messages from queue, but when exceptions occur, I find if I use qMgr.backout(), all of the messages which the application has received will be rollbacked include the uncommitted right messages in other thread?
Any suggestions?
Back to top
View user's profile Send private message
bower5932
PostPosted: Mon Nov 12, 2007 6:40 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Are all of your units of work sharing the same connection handle?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
xyzcom1983
PostPosted: Mon Nov 12, 2007 6:52 pm    Post subject: Reply with quote

Newbie

Joined: 04 Feb 2007
Posts: 7

Yes, all the thread shared only one qMgr instance
but if I didn't use only one qMgr, the application will throw mq exception
Back to top
View user's profile Send private message
bower5932
PostPosted: Mon Nov 12, 2007 7:50 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Units of work are handled on a per connection basis. If you are sharing the connection, then a rollback (or commit) will process all outstanding units of work. What version of WMQ are you using? How are you connecting to the qmgr (ie, the exact call)? What is the exception?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Muti-thread qMgr.backout rollbacked all of the messages?
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.