Author |
Message
|
JohnRodey |
Posted: Mon May 09, 2005 7:14 am Post subject: How to repost messages with higher priority after expiration |
|
|
 Centurion
Joined: 13 Apr 2005 Posts: 103
|
We have messages being placed on a queue that have an expiry field set. If these messages expire we would like to repost them with a higher priority.
What is the best way to achieve this functionality? |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon May 09, 2005 7:44 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Report With Full Data. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
JohnRodey |
Posted: Mon May 09, 2005 11:32 am Post subject: |
|
|
 Centurion
Joined: 13 Apr 2005 Posts: 103
|
First off thanks jefflowrey!
I have read up somewhat on the report field, but do not totally understand how it works.
Do i set the report options to MQRO_EXPIRATION_WITH_FULL_DATA and MQRO_DEAD_LETTER_Q?
Then when the message expires it will be placed on the dead letter queue?
After it is on the dead letter queue have the dead-letter queue handler place it back on the queue with a incremented priority?
Is this how this feature works?
I appreciate any guidance. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon May 09, 2005 12:59 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I might prefer to use a Reply To Queue instead of the Dead Letter Queue, since you likely want to make note of the fact that the message expired and got retransmitted - and that's app logic, not something for a DLQH to do.
Also, I prefer to use the DLQ for messages that are really DEAD, not just "mostly dead" like in your scenario. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
JohnRodey |
Posted: Thu May 12, 2005 11:54 am Post subject: |
|
|
 Centurion
Joined: 13 Apr 2005 Posts: 103
|
I was able to use report options to send a message to another queue after expiration. Although we have multiple queues that will each use this queue to post their expired messages. We want these messages to be reposted to their original queues with a higher priority.
How can we know which queue these messages came from?
Does anyone know the suggested way to solve this? |
|
Back to top |
|
 |
|