|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Muti-thread qMgr.backout rollbacked all of the messages? |
« View previous topic :: View next topic » |
Author |
Message
|
xyzcom1983 |
Posted: Mon Nov 12, 2007 6:16 pm Post subject: Muti-thread qMgr.backout rollbacked all of the messages? |
|
|
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 |
|
 |
bower5932 |
Posted: Mon Nov 12, 2007 6:40 pm Post subject: |
|
|
 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 |
|
 |
xyzcom1983 |
Posted: Mon Nov 12, 2007 6:52 pm Post subject: |
|
|
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 |
|
 |
bower5932 |
Posted: Mon Nov 12, 2007 7:50 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|