ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » Setting message expiration using the base API

Post new topic  Reply to topic
 Setting message expiration using the base API « View previous topic :: View next topic » 
Author Message
weskelton
PostPosted: Mon Feb 22, 2010 10:48 am    Post subject: Setting message expiration using the base API Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Feb 22, 2010 11:20 am    Post subject: Re: Setting message expiration using the base API Reply with quote

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
View user's profile Send private message
mvic
PostPosted: Mon Feb 22, 2010 12:50 pm    Post subject: Re: Setting message expiration using the base API Reply with quote

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
View user's profile Send private message
weskelton
PostPosted: Mon Feb 22, 2010 1:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Setting message expiration using the base API
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.