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 IndexIBM MQ Java / JMSblocked get.

Post new topicReply to topic
blocked get. View previous topic :: View next topic
Author Message
asiufy
PostPosted: Mon Sep 10, 2001 7:59 am Post subject: Reply with quote

Newbie

Joined: 09 Sep 2001
Posts: 5

Hi.

I need to write a Java daemon that listens to a queue for incoming messages.

I have set my getMessageOptions like this:


gmo.options = MQC.MQGMO_WAIT;
gmo.waitInterval = MQC.MQWI_UNLIMITED;


and still I can't get it to block and wait for new messages... Should I wrap the get() call in an endless loop?


Thank you!
Back to top
View user's profile Send private message
bduncan
PostPosted: Mon Sep 10, 2001 12:22 pm Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

When you say it isn't "blocking" does this mean that it eventually times out and returns a 2033 reason (no messages available)?
Or when you refer to "blocking" do you mean to make it such that other applications can't get from the same queue? If that's the case then you simply need to open the queue for exclusive getting in order to block other applications...
Regardless, if it is dropping out of the MQGET call after some period of time, have the application print out the CompCode and Reason values that the MQGET returns. This will help greatly with figuring out what is going on...


_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
kolban
PostPosted: Mon Sep 17, 2001 2:48 pm Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

Make sure that you use the MQQueue overloaded method get() with the MQGetMessageOptions object passed as a reference.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Java / JMSblocked get.
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.