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 » IBM MQ API Support » Triggering Messages

Post new topic  Reply to topic
 Triggering Messages « View previous topic :: View next topic » 
Author Message
vandana
PostPosted: Wed Jan 30, 2002 1:21 am    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Wed Jan 30, 2002 10:39 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

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
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 » IBM MQ API Support » Triggering 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.