Posted: Wed Jan 10, 2007 10:19 am Post subject: Can message expiry be turned off?
Newbie
Joined: 09 Aug 2006 Posts: 4
Hi,
I have a question about expiry.
I use WMQ v5.3 (Linux).
I need to retain for later use the messages sent by some external applications.
I used the api exit "mirrorq" to duplicate messages from the local queue in which the appl. do the PUT (and another external appl. at the other side do the relate GET), to a "mirror queue" where I want to retain messages until I get them for backup purposes.
The problem is that one of these appl. using my WMQ server put messages with expiry time set ( != -1), so I'm not able to mirror this kind of messages since messages copies in mirror queue expires too.
Is it possible to reset (bring it back to -1) the message expiry field for messages inserted in a specific queue?
All is to be done "server side" since I cannot change the behaviour of the client applications.
Thanx
You can look at mirrorq source code, and edit it to always reset the expiry time on the mirrored messages.
The only other way would be to write a server side program that would destructively move messages from the mirrorq to another queue and change the exipry time.
There isn't a way to tell WMQ not to expire messages. _________________ I am *not* the model of the modern major general.
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