|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Triggering Messages |
« View previous topic :: View next topic » |
Author |
Message
|
vandana |
Posted: Wed Jan 30, 2002 1:21 am Post subject: |
|
|
Acolyte
Joined: 01 Dec 2001 Posts: 74
|
Hi,
If a que is set on for triggering ,and there are a number of messages
already existing on the que ,after staring the trig monitor would the application b fired for all the existing messages on the que or only
for the message which has been put now ?
I have the foll scenario
A queue is set on for triggering
The process defn is associated with an java pgm which reads
the message from the queue.
The queue already contains a number of messages.
when i start the trig monitor,the triggering occurs
for some of the existing messages of the queue
i.e the java pgm gets executed and reads some of the messages
already existing in the queue.
(not all
say if the queue contains 10 messages is reads 5 messages .if the queue
contains lesser messages it reads all)
Why is that so ??
Regards,
Vandana
|
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Jan 30, 2002 10:39 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
One of the events that causes trigger conditions to be evaluated is the IPROCS count of an INIT queue going from zero to one (in other words, a trigger monitor opens an init queue for monitoring when there was previously nothing else holding the init queue open).
See the Application Programming Guide, http://www-4.ibm.com/software/ts/mqseries/library/manualsa/csqzal05/csqzal05tfrm.htm , bullet point 13.D under Conditions for a Trigger Event.
You will only get ONE trigger message here, even if the queue is triggered on Every and there is more than one message on the queue.
Triggered applications should always read until 2033.
_________________
Peter Potkay
[ This Message was edited by: PeterPotkay on 2002-01-30 10:41 ] |
|
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
|
|
|
|