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 » read all messages from a queue in broker

Post new topic  Reply to topic
 read all messages from a queue in broker « View previous topic :: View next topic » 
Author Message
vani_cool
PostPosted: Wed Aug 03, 2011 3:07 pm    Post subject: read all messages from a queue in broker Reply with quote

Novice

Joined: 15 Jul 2009
Posts: 17

Requirement:

One queue - has some messages, read them all one by one and send to a subflow for process.

messages that fails processing in subflow - send them back to the queue(using transaction)

ways to achieve?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Aug 03, 2011 3:19 pm    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

First off, do not use Transaction mode. If message fails in subflow, put to an error queue and write failure info to log.

Have you taken the WM663 training class? If not, why not?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
vani_cool
PostPosted: Thu Aug 04, 2011 5:59 am    Post subject: Reply with quote

Novice

Joined: 15 Jul 2009
Posts: 17

thanks for reply...

yes i m not using transaction - but all the message that fails i have to send them any how - may be some time later....

so from error queue also i will need to send the messages again.

My main reqt is - to read all the messages from a queue and i need to do this in a subflow so - what should be the best way to do it ---
1) like a timeout node with 2 seconds interval to read from MQget node.
2) or use timeout control and timer with MQget ...

or something else?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Aug 04, 2011 6:02 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

lancelotlinc wrote:
Have you taken the WM663 training class? If not, why not?


Sir Vitor says: Training ... !!
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Thu Aug 04, 2011 6:05 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

vani_cool wrote:


My main reqt is - to read all the messages from a queue and i need to do this in a subflow so -


Why?
Why do you need to do this in a subflow?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
vani_cool
PostPosted: Thu Aug 04, 2011 6:31 am    Post subject: Reply with quote

Novice

Joined: 15 Jul 2009
Posts: 17

i can do it on the main flow not a problem.. but i need to do this in middle of the flow after doing some processings ...
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 » read all messages from a queue in broker
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.