Posted: Mon Mar 15, 2004 2:18 pm Post subject: Triggering: Init Queue Question
Apprentice
Joined: 01 Apr 2002 Posts: 27
Hi,
I am running MQ 5.3 CSD05 on Win 2K.
Here is the Setup
1. Defined a trigger on Q1
trigger -> ON
trigger type -> first
trigger Depth -> 1
Init Queue -> Q2
Process -> P1
2. defined a local queue Q2 for initiation Queue
3. Defined Process name P1
App Type -> Windows Nt
App ID -> app1.exe
4. I created a custom service to start runmqtrm as MQ service
5. I placed some messages on Q1
6. The trigger started and the App. app1.exe started picking up messages.
once app1.exe is started it will keep reading messages until Queue is empty.
7. But I see some messages sitting in the Init Queue Q2, and not getting cleared.
8. Even though there aren't any messages, I can see in the Task manager the App. app1.exe is still runnning.
The Question is why there are messages in the Init Q ?
Is this why my app. keeps running all the time ?
how will the messages in the Init Queue Q2 get cleared ?
Joined: 21 Jan 2003 Posts: 309 Location: Kuala Lumpur, Malaysia
There are messages in the initq because there was a trigger, and the trigger message is sent to that initq.
Your application is still running maybe due to the wait forever.. or wait on a long time before disconnecting. The trigger message on the initq helps to trigger the app. But the app keep on running maybe because it is in a loop.
The message in the initq got cleared by the trigger monitor.
If everything is working fine.. the messages in the initq should been cleared by the trigger monitor (runmqtrm) and the app is triggered for every trigger message. Your app should be checked if it continues running after no more messages on the queue - don't wait forever, or don't wait too long.
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