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 » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Listening for Workflow generated messages.

Post new topic  Reply to topic
 Listening for Workflow generated messages. « View previous topic :: View next topic » 
Author Message
jpappas
PostPosted: Wed Apr 24, 2002 5:17 am    Post subject: Reply with quote

Newbie

Joined: 23 Apr 2002
Posts: 5

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.
Back to top
View user's profile Send private message
jmac
PostPosted: Wed Apr 24, 2002 6:35 am    Post subject: Reply with quote

Jedi Knight

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).

_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vedbhat
PostPosted: Wed Apr 24, 2002 6:36 pm    Post subject: Reply with quote

Disciple

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.

Regards
Ved
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Listening for Workflow generated 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.