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 » General IBM MQ Support » MQ - Jobs running parallely..

Post new topic  Reply to topic
 MQ - Jobs running parallely.. « View previous topic :: View next topic » 
Author Message
naidu540
PostPosted: Mon Aug 31, 2009 1:51 am    Post subject: MQ - Jobs running parallely.. Reply with quote

Newbie

Joined: 31 Aug 2009
Posts: 1

I have two jobs one to PUT messages in Queue and Other to GET the reply messages from Queue. These two jobs should run paralley.My fisrt job which PUT the messages in Queue stops when there are no records in the input file. Can any one suggest me how to stop my second job? I need to get all the reply messages for all the requests i have PUT through the first job.
Back to top
View user's profile Send private message
exerk
PostPosted: Mon Aug 31, 2009 2:02 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

As you are new, you get a fish...

Research MQRC2033 and MQGMO WaitInterval.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Mon Aug 31, 2009 4:19 pm    Post subject: Re: MQ - Jobs running parallely.. Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

naidu540 wrote:
I have two jobs one to PUT messages in Queue and Other to GET the reply messages from Queue. These two jobs should run paralley.My fisrt job which PUT the messages in Queue stops when there are no records in the input file. Can any one suggest me how to stop my second job? I need to get all the reply messages for all the requests i have PUT through the first job.


You need some way of telling the GET job that it has got the last message that it needs to process?

Common techniques are to set an "indicator" on the last message (eg. special value of CorrelId) or to put a special message after the last message (eg. message data is 3 bytes "EOF").

WaitInterval plus test for MQRC_NO_MESSAGE_AVAILABLE is also a valid solution, provided the GET job can tolerate some dead time while it is waiting around for the interval to expire after the last message has been received. The question is: How long should you wait? What is the longest possible delay that the PUT job might experience delivering messages to the queue? 1 second? 10 seconds? 60 seconds?

Personally I prefer the indicator method.

HTH,
_________________
Glenn
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 » General IBM MQ Support » MQ - Jobs running parallely..
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.