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 » IBM MQ Java / JMS » MQC.MQWI_UNLIMITED

Post new topic  Reply to topic
 MQC.MQWI_UNLIMITED « View previous topic :: View next topic » 
Author Message
tmmgsf
PostPosted: Wed Nov 13, 2002 10:47 pm    Post subject: MQC.MQWI_UNLIMITED Reply with quote

Newbie

Joined: 13 Nov 2002
Posts: 6

How do I wait for a message in an initiation queue for an unlimited period (always)? I have created a trigger monitor that listens to messages on an initiation queue. The trigger monitor should always be waiting for messages on the initiation. Here is the sample code...

MQGetMessageOptions gmo = new MQGetMessageOptions();
if (bBrowse == true)
{
gmo.options = MQC.MQGMO_WAIT |MQC.MQGMO_BROWSE_FIRST | MQC.MQGMO_FAIL_IF_QUIESCING;
}
else
{
gmo.options = MQC.MQGMO_WAIT | MQC.MQGMO_FAIL_IF_QUIESCING ;
}
MQMessage qXmlMessageToReceive = new MQMessage();
qQueue.get(qXmlMessageToReceive,gmo,MQC.MQWI_UNLIMITED);

Thank you in advance
Back to top
View user's profile Send private message
tmmgsf
PostPosted: Fri Nov 15, 2002 11:34 am    Post subject: I found the solution Reply with quote

Newbie

Joined: 13 Nov 2002
Posts: 6

I am just new in MQSeries and figured this out, it is quiet simple. The syntex I was looking for was:
<<gmo.waitInterval = MQC.MQWI_WAIT_UNLIMITED; >>
Thanx anyways
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 » IBM MQ Java / JMS » MQC.MQWI_UNLIMITED
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.