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 IBM MQ Support » triggering question

Post new topic  Reply to topic
 triggering question « View previous topic :: View next topic » 
Author Message
crossland
PostPosted: Fri Apr 30, 2004 3:50 am    Post subject: triggering question Reply with quote

Master

Joined: 26 Jun 2001
Posts: 248

An application puts 24 messages onto a queue which is set to trigger first - the messages are all put within a unit of work.

The application then issues a rollback and the depth goes back to 0. Triggering does not happen until this point.

The triggered application is then failing as there are no messages on the queue.

Can anyone explain why triggering is occuring in this case?

Thanks,

Tim
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Fri Apr 30, 2004 4:43 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Its working as designed.

See Chapter 14 of the Application Programming Guide.

Lets say you put all 24 messages to the queue under syncpoint, and the trigger message is generated, but not committed. That trigger message is committed when the putting app commits, and your app will be started at that time. But what happens if message #25 lands from a different UOW after the first 24 are put but not yet committed? If the first 24 are backed out, and MQ also backed out the trigger message, then message 25 would be stranded with no trigger message, since the queue went from 25 to 1, not 0 to 1.

All triggered apps should read the queue until 2033. All triggered apps should handle getting a 2033 on their first MQGET with no problems.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » triggering question
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.