Hi,
I've been able to create a UPES and a corresponding queue. I've also been able to create a small workflow which writes messages to that queue. I've also been able to retrieve messages from that queue. The question is - how do I create a Listener for that queue? Do I have to use JMS Pub-Sub? Thanks.
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
A simple "Queue Monitor" program which opens the queue, and waits for a message. Typically I put this 'listening' code into an endless loop, I have the program wait for a message for a specific amount of time (say 5 seconds), then wake up (to give a shutdown request a chance).
Joined: 19 Mar 2002 Posts: 186 Location: Singapore
Hi,
You can use the sample provided by MQSERIES - AMQSGET with little modification. AMQSGET waits only for 15 seconds so change it to larger interval or unlimited by specifying the Interval with MQWI_UNLIMITED.
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