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 Only

Post new topic  Reply to topic
 MQGet Node - Browse Only « View previous topic :: View next topic » 
Author Message
nickkirk
PostPosted: Wed Oct 29, 2008 7:42 am    Post subject: MQGet Node - Browse Only Reply with quote

Apprentice

Joined: 26 Sep 2008
Posts: 48

I am using an MQGet node to browse a queue, using WMB v6.1.

The node seems to only browse a message once ( i.e. next time it browses the queue with the same and only message, it thinks that there is no message and propogates out the 'No Message' terminal).


Does it mark the message as 'read' ?

I expect the MQGet node to propogate out the 'Out' terminal whenever there is a message in the queue, even if this queue is browsed more than once when the same message is in the queue.[/i]
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Oct 29, 2008 8:06 am    Post subject: Re: MQGet Node - Browse Only Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

nickkirk wrote:
Does it mark the message as 'read' ?


IIRC it move the browse cursor so it's past the message it's read. You might be able to get round this by browsing for the specific message id.

It also sounds like you're storing information in a queue like it's a database. This is not usually a good idea, for reasons often discussed in the forum. You may find other solutions (like using a database) easier / better in the long term.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
nickkirk
PostPosted: Wed Oct 29, 2008 8:26 am    Post subject: Reply with quote

Apprentice

Joined: 26 Sep 2008
Posts: 48

Yes, it does seem to be moving the browse cursor.

Is there a way to reset the curser to the beginning of the FIFO queue ?


BTW: Vitor, We are using a FAILURE queue to temporarily store messages. The solution requires knowledge of the existence of a message on this queue. If the browse functionality does not work as expected, the MQGet node may propogate the message out the 'No Message' terminal even when there is a message on the queue.
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Oct 29, 2008 8:32 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

nickkirk wrote:
Is there a way to reset the curser to the beginning of the FIFO queue ?


Not within the node AFAIK but I'll accept correction from anyone who knows better.


nickkirk wrote:
BTW: Vitor, We are using a FAILURE queue to temporarily store messages. The solution requires knowledge of the existence of a message on this queue.


Which is exactly what the MQInput node provides - readign a message as soon as it arrives on a queue. Why are you using an MQGet? If you provide more details of your requirements and how you've arrived at your solution we might be able to provide an alternative solution.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
nickkirk
PostPosted: Wed Oct 29, 2008 9:46 am    Post subject: Reply with quote

Apprentice

Joined: 26 Sep 2008
Posts: 48

Apparantly there might be a way using the MQGMO_BROWSE_FIRST field to reset the browse cursor ???

Something like ; OutputLocalEnvironment.MQ.GET.MQGMO.MQGMO_BROWSE_FIRST = ????
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Wed Oct 29, 2008 11:24 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

We've answered this one before. You can influence the MQGMO in a compute node, read the online help in the toolkit.
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 Only
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.