Posted: Tue May 06, 2003 11:21 pm Post subject: Get more than one message from queue
Novice
Joined: 01 Apr 2003 Posts: 12
Can we get more than one message from the queue without
setting the BROWSE option.
as in the case of dialup network the client has to access the server QM access the Queue and get the messages. If BROWSE option is set we
need to get the message twice means double the time
myQueue.get(myMessage, gmo);
gmo.options = MQC.MQGMO_MSG_UNDER_CURSOR;
myQueue.get(myMessage, gmo);
so performance is main hindrance.
help in this regard is highly appreciated.
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
I am afraid MQ doesnt have any such option. And the only alternative is to do multiple gets to get more than 1 message. MQ processess Only and Only 1 message at any point in time irrespective of the criterion that you specified on your get.
Cheers
Kumar _________________ IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator
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