Author |
Message
|
vani_cool |
Posted: Wed Aug 03, 2011 3:07 pm Post subject: read all messages from a queue in broker |
|
|
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 |
|
 |
lancelotlinc |
Posted: Wed Aug 03, 2011 3:19 pm Post subject: |
|
|
 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 |
|
 |
vani_cool |
Posted: Thu Aug 04, 2011 5:59 am Post subject: |
|
|
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 |
|
 |
lancelotlinc |
Posted: Thu Aug 04, 2011 6:02 am Post subject: |
|
|
 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 |
|
 |
smdavies99 |
Posted: Thu Aug 04, 2011 6:05 am Post subject: |
|
|
 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 |
|
 |
vani_cool |
Posted: Thu Aug 04, 2011 6:31 am Post subject: |
|
|
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 |
|
 |
|