|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Setting message expiration using the base API |
« View previous topic :: View next topic » |
Author |
Message
|
weskelton |
Posted: Mon Feb 22, 2010 10:48 am Post subject: Setting message expiration using the base API |
|
|
Novice
Joined: 22 Feb 2010 Posts: 10
|
I'm developing a replacement for an exisitng service using the MQ base API for Java. My legacy client polls the reply queue for a specified amount of time and then gives up. If it hasn't taken the message from the queue before giving up, any reply sent after that will just sit there until it expires. I'm looking for a way to set the message expiration for reply messages that I am sending from my service so that they will not sit on the queue for too long.
I'm pretty new to the MQ base API, so I apologize if this is a basic thing. I actually did a fair amount of searching before deciding to post. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Feb 22, 2010 11:20 am Post subject: Re: Setting message expiration using the base API |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
weskelton wrote: |
I'm pretty new to the MQ base API, so I apologize if this is a basic thing. I actually did a fair amount of searching before deciding to post. |
It's fairly basic. I'm surprised the search didn't turn up the Expiry property of the MQMD header but that's what you're looking for. Start with the description of the field in the Application Programming Reference and work outwards. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mvic |
Posted: Mon Feb 22, 2010 12:50 pm Post subject: Re: Setting message expiration using the base API |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
weskelton wrote: |
MQ base API |
What programming language?
MD.Expiry is the thing you want, as Vitor has said. |
|
Back to top |
|
 |
weskelton |
Posted: Mon Feb 22, 2010 1:34 pm Post subject: |
|
|
Novice
Joined: 22 Feb 2010 Posts: 10
|
Vitor,
Thanks for the tip. That was exactly what I needed.
For the record, this was a Java solution. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|