Author |
Message
|
Al Pacino |
Posted: Mon Mar 19, 2007 10:45 am Post subject: Messages Delay |
|
|
 Centurion
Joined: 19 Aug 2005 Posts: 114
|
Hi folks ,
I have a trigger queue which I would like to delay the messages on it for 15 mins before they get pulled by the application. Is there a way to do it on the MQ/Queue level without having to write a program or change the app itself ?
MQ 5.3 CSD 10
Windows Server 2003 _________________ "We can't solve problems by using the same kind of thinking we used
when we created them." |
|
Back to top |
|
 |
Michael Dag |
Posted: Mon Mar 19, 2007 10:57 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
no way with MQ itself, you need to write your own delay before triggering the app.
once the app has the queue open all available message are available for reading...
I heard this many times and is sometimes labeled "the do not open until christmas message requirement"  _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
Al Pacino |
Posted: Mon Mar 19, 2007 12:01 pm Post subject: |
|
|
 Centurion
Joined: 19 Aug 2005 Posts: 114
|
Thanks Mike _________________ "We can't solve problems by using the same kind of thinking we used
when we created them." |
|
Back to top |
|
 |
Nigelg |
Posted: Tue Mar 20, 2007 1:33 am Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
Put the original msg with MD.Report set to MQRO_EXPIRATION_WITH_FULL_DATA and an Expiry time of 1800 (15 mins worth of half-seconds). When the msg expires after the required 15 mins, the report msg is written to the MD.ReplyQ. If this queue is triggered, the app can then get the msg from there. _________________ MQSeries.net helps those who help themselves.. |
|
Back to top |
|
 |
Michael Dag |
Posted: Tue Mar 20, 2007 1:52 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
creative! what if the sending qmgr is different then the receiving qmgr, doesn't the report message go back to the sending qmgr? _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Mar 20, 2007 3:23 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Report messages go to the ReplyToQueue on the ReplyToQueueManager. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Michael Dag |
Posted: Tue Mar 20, 2007 3:55 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
jefflowrey wrote: |
Report messages go to the ReplyToQueue on the ReplyToQueueManager. |
exactly... that was my thought aswell.
so in your sending app (if on a different queuemanager) you need to set the ReplyToQueueManager to be the one of the receiving app's queuemanager for this to work.
otherwise the 'delayed' messages will be sent back to the senders queuemanager...
still it's a creative solution... and only works for one way traffic or request reply that doesn't use the replyto info _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
|