Author |
Message
|
wmqiadmin |
Posted: Mon Mar 12, 2007 6:11 pm Post subject: Batch process |
|
|
 Disciple
Joined: 19 Jun 2005 Posts: 163 Location: epping UK
|
Hi All,
Can we batch process messages on a queue using message flow e.g. say i want to run a message flow for 10 min and turn it off for 30 min or message depth on the queue reaches a certain number.
If yes please let me know how?
Appiricate your help.
thanks
wmqiadmin. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Mar 12, 2007 6:25 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Yes, you can do this.
You shouldn't, likely, but you certainly can.
What have you tried? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 13, 2007 1:01 am Post subject: Re: Batch process |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
wmqiadmin wrote: |
Can we batch process messages on a queue using message flow e.g. say i want to run a message flow for 10 min and turn it off for 30 min or message depth on the queue reaches a certain number.
|
What's the business need for this? I struggle to see the requirement. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Tue Mar 13, 2007 1:59 am Post subject: Re: Batch process |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
wmqiadmin wrote: |
Can we batch process messages on a queue using message flow e.g. say i want to run a message flow for 10 min and turn it off for 30 min or message depth on the queue reaches a certain number.
|
If you really need this funcionality ...
You can use for this TimeoutNotification and MQGet nodes.
TimeoutNotification you can activate every XX minutes and then do some businnes checking in Compute if this is time to read message from queue or not.
If yes fro mcompute propagate message to MQGet, if not just propagate message to not connected terminal.
Marcin |
|
Back to top |
|
 |
wmqiadmin |
Posted: Tue Mar 13, 2007 10:08 am Post subject: |
|
|
 Disciple
Joined: 19 Jun 2005 Posts: 163 Location: epping UK
|
Hi All,
Thanks for your valuable guidelines.
What actually i am trying to do is designing an error handler message flow for a queue which encounters all the system exception messages.
for this can i do a browse in the flow using the mqget node or I have to do the mqget.
Using time control nodes, according to my understanding the broker will keep the messages in its memory until the time outs, which i think will be costly if the system fails and lot of messages generated, please correct me if i am wrong.
So what i was thinking if i could start the message flow after a fixed interval of time I'll be able to give appropriate time to fix the problem and won't use much broker resources.
thanks
wmqiadmin |
|
Back to top |
|
 |
Vitor |
Posted: Wed Mar 14, 2007 12:37 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Do I understand you correctly, you're planning to put exception messages on a holding queue, processing them in batch a period of time later when the problem should be fixed? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
wmqiadmin |
Posted: Mon Mar 26, 2007 11:29 am Post subject: |
|
|
 Disciple
Joined: 19 Jun 2005 Posts: 163 Location: epping UK
|
Vitor wrote: |
Do I understand you correctly, you're planning to put exception messages on a holding queue, processing them in batch a period of time later when the problem should be fixed? |
Yes that is true. Any suggestions on this.
Thanks
wmqiadmin |
|
Back to top |
|
 |
|