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 » Two trigger messages

Post new topic  Reply to topic
 Two trigger messages « View previous topic :: View next topic » 
Author Message
Nigelg
PostPosted: Fri May 25, 2007 5:10 am    Post subject: Two trigger messages Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Does anybody know the meaning of this part of the triggering section of the APG, and the conditions that cause the two trigger msgs to be created? If so, I would be grateful for an explanation...

Quote:
Note: If you stop and restart the queue manager, the TriggerInterval "timer" is reset. There is a small window during which it is possible to produce two trigger messages. The window exists when the queue's trigger attribute is set to enabled at the same time as a message arrives and the queue was not previously empty (MQTT_FIRST) or had TriggerDepth or more messages (MQTT_DEPTH).

_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
tleichen
PostPosted: Fri May 25, 2007 5:50 am    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

As I recall, the number of trigger messages in not exactly predictable with "trigger on depth" or "trigger on every", but works as expected with "trigger on first". That has been my experience, anyway.
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri May 25, 2007 7:25 am    Post subject: Reply with quote

Guest




The point of the doc telling you that it is possible for multiple trigger messages to arive is so that your application programmer will anticipate this.

It is possible, as well, that a triggered instance of the MQGETting application could encounter a rc2033 (no message available) because some other instance of the same (or other) program has already consumed the message.

Triggerins is complicated. There are a variety of reasons that 'triggers go bad.' There are at least a dozen pages in the MQSC, APR and APG manuals, devoted to triggering. Sys admins and programmers need to read and understand triggering.
Back to top
PeterPotkay
PostPosted: Fri May 25, 2007 5:24 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Nigel,
I think it probably covers MQ due to the way its coded under the covers.

Q depth is >0. You turn on triggering at the same time a message arrives.

A. Turning on triggering for a q with > 0 messages will cause a trigger message.

B. A triggered (on first) queue with > 0 will generate a trigger message if a new app message lands on the queue and Trigger Interval has passed (except on z/os, where you don't need another app message, only trig int to pass).

Restarting the QM resets the trigger interval, or if I read between the lines correctly, it tells the QM to assume trigger interval has passed and start counting again.

So if A and B occur at the same time, and B will happen after a QM restart because trigger interval has "passed", both A and B will each produce a trigger message.

This is just an educated guess.
_________________
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 » Two trigger 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.