|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
TRIGGER PROBLEM |
« View previous topic :: View next topic » |
Author |
Message
|
oldbear |
Posted: Fri Sep 23, 2005 11:15 pm Post subject: TRIGGER PROBLEM |
|
|
Newbie
Joined: 23 Sep 2005 Posts: 2
|
I use a trigger to drive an application,now it works.The trigtype is EVERY. but now i have a problem,the queue has received a message,it wasn't trigged.the queue's CURDEPTH is 1.when another message comes,the older message is trigged,the newer message is still in the queue,how can i solve it? |
|
Back to top |
|
 |
oz1ccg |
Posted: Fri Sep 23, 2005 11:28 pm Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
Like it or not.....
Application design. My personal oppinion is: It should only be allowed to use TRIGGER-FIRST.
The others are too complicated to use.
A simple way to handle this (I did it some years ago:
Write my own "trigger monitor" that was aware of how to handle TRIGGER-EVERY, by monitoring the queue.
This triggermonitor was started by a trigger-first, and it would wait until there was no more messages on the queue before it terminated. (It opened the queue with MQOO_INPUT_SHARED).
Another way could be to change the application to continue getting messages until the queue was empty....
I hope this helps.
Just my $0.02  _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
oldbear |
Posted: Sat Sep 24, 2005 12:00 am Post subject: Thank you very much! |
|
|
Newbie
Joined: 23 Sep 2005 Posts: 2
|
I just discussed it with others.and the result is the second you said.thank you very much! |
|
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
|
|
|
|