Author |
Message
|
santy |
Posted: Tue Dec 29, 2009 9:50 am Post subject: Processing messages if received only for certain period |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 141
|
Hi,
I'm working on WMB 6.1 and I have the below requirement.
I'm going to send the request to an application at 06:45,12:00 and 16:45 and I'm expected to receive the responses after 15 mins like 07:00, 12:15 and 17:00.
My requirement is to process the reponses received only for 17:00.
Problem I'm facing is how can I process the messages received only for 17:00? All of the responses contains same data and there is no date-time field and it might happen that I might receive the 17:00 response early tomorrow next day or I might receive the 12:00 and 16:45 responses at the 17:00. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Dec 29, 2009 10:12 am Post subject: Re: Processing messages if received only for certain period |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
santy wrote: |
there is no date-time field |
Aside from the put date/time of course. Which you'd think would be close enough for your purposes. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
santy |
Posted: Tue Dec 29, 2009 10:29 am Post subject: |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 141
|
I'm not getting any good solution.  |
|
Back to top |
|
 |
Vitor |
Posted: Tue Dec 29, 2009 10:39 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
santy wrote: |
I'm not getting any good solution.  |
I didn't think mine was that bad.....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Tue Dec 29, 2009 2:07 pm Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
This sounds like something that sits in application land. Make your receiving application sleep to the next 15 minute window (ie 15, 30, 45, 00) as required. Thats how you do it; why is another matter known only to you..... |
|
Back to top |
|
 |
santy |
Posted: Tue Dec 29, 2009 2:20 pm Post subject: |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 141
|
Sorry Vitor, I didn't get what you are saying. which put date/time you are talking about? the one which is present in MQMD Header.[/quote] |
|
Back to top |
|
 |
Vitor |
Posted: Tue Dec 29, 2009 2:41 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
santy wrote: |
the one which is present in MQMD Header. |
Not accurate to be sure, but if the reply was sent at 13:00 it's unlikely to be an answer to your 16:45 request IMHO..... _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Dec 29, 2009 2:57 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Keep a running log (DB?) of the requests with timestamp & msgid and correlid.
When looking for answers just look for the corresponding correlids.
You can further limit by time on the MQMD of the response if you need.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|