Author |
Message
|
rlagares |
Posted: Thu Mar 13, 2008 4:39 am Post subject: MQGET node browse |
|
|
Newbie
Joined: 09 Oct 2007 Posts: 7
|
Hello,
We are trying to browse messages from a Queue using the MQGET node.
We set the OutputLocalEnvironment.MQ.GET.MGMO.Options = MQGMO_BROWSE_FIRST, but the flow throw an exception with ReasonCode=2036. The exception says that we need expicify the MQOO_BROWSE, but we don´t now if that property is especified in the MQGET node properties, in the OutputLocalEnvironment, or simply it can be especified.
Can We browse messages in a queue really?
How can we make that?
Thanks |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Thu Mar 13, 2008 4:47 am Post subject: Re: MQGET node browse |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
Which version are you using ?
In MB v 6.1 on MQGet node there is Request tab and "Browse only" option. _________________ Marcin |
|
Back to top |
|
 |
touchofcrypticthunder |
Posted: Mon Sep 14, 2009 10:49 pm Post subject: |
|
|
Apprentice
Joined: 08 Jul 2009 Posts: 30
|
I am also facing similar problem. I have set the option "Browse only" on MQGet node. Still the messages are getting consumed destructively. Do I need to set anything in LocalEnvironment before MQGet node? |
|
Back to top |
|
 |
touchofcrypticthunder |
Posted: Thu Oct 01, 2009 6:15 am Post subject: message browsing using MQGet node |
|
|
Apprentice
Joined: 08 Jul 2009 Posts: 30
|
The problem is solved when MQGMO_BROWSE_FIRST is set in LocalEnvironment along with "Browse Only" option set on MQGet node as shown below:
SET OutputLocalEnvironment.MQ.GET.MQGMO.Options = MQGMO_BROWSE_FIRST
I guess "Browse Only" option on MQGet node opens the specified queue in Browse mode and the option MQGMO_BROWSE_FIRST set in LocalEnvironment is required for doing the actual browsing. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Oct 01, 2009 6:19 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
If you clicked the "browse" button then the message won't get consumed destructively.
The MQGet node uses MQGMO_BROWSE_NEXT as it's default option. This means that the message cursor will advance each time you invoke MQGet.
If you set MQGMO_BROWSE_FIRST every time before you call MQGet, then you will always read the first message on the queue and never read any other messages.
This is basic MQ browse behavior. |
|
Back to top |
|
 |
|