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 » WebSphere Message Broker (ACE) Support » MQGET node browse

Post new topic  Reply to topic
 MQGET node browse « View previous topic :: View next topic » 
Author Message
rlagares
PostPosted: Thu Mar 13, 2008 4:39 am    Post subject: MQGET node browse Reply with quote

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
View user's profile Send private message
marcin.kasinski
PostPosted: Thu Mar 13, 2008 4:47 am    Post subject: Re: MQGET node browse Reply with quote

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
View user's profile Send private message Visit poster's website
touchofcrypticthunder
PostPosted: Mon Sep 14, 2009 10:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
touchofcrypticthunder
PostPosted: Thu Oct 01, 2009 6:15 am    Post subject: message browsing using MQGet node Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu Oct 01, 2009 6:19 am    Post subject: Reply with quote

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
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 » WebSphere Message Broker (ACE) Support » MQGET node browse
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.