|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Can we increase the Message expire time using CAPEXPRY |
« View previous topic :: View next topic » |
Author |
Message
|
vicks_mq |
Posted: Wed May 01, 2019 7:04 am Post subject: Can we increase the Message expire time using CAPEXPRY |
|
|
Disciple
Joined: 03 Oct 2017 Posts: 162
|
Hi All, we have a situation where we have set our CAPEXPRY for 24 hours in our local Q, Sending application has send around 1000 messages but receiving application is down and not yet fixed. Now when the message arrived in the Queue because the CAPEXPRY was 24 hours , so all the messages has their expiry interval set to 24 hours.
Can I move these message to another Local Q which has CAPEXPRY of 5 days and will that change these messages new expiry time to 5 days?
I just want to save these messages , we can't take backup to a file because of some restrictions so looking for innovative suggestions here. |
|
Back to top |
|
 |
exerk |
Posted: Wed May 01, 2019 8:09 am Post subject: Re: Can we increase the Message expire time using CAPEXPRY |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
vicks_mq wrote: |
...Can I move these message to another Local Q which has CAPEXPRY of 5 days and will that change these messages new expiry time to 5 days?... |
Nope. The doc clearly states "...An expiry time specified by an application, which is lower than the CAPEXPRY value will be used...".
RfhUtil and GET/PUT with a new expiry value? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
vicks_mq |
Posted: Wed May 01, 2019 8:37 am Post subject: Re: Can we increase the Message expire time using CAPEXPRY |
|
|
Disciple
Joined: 03 Oct 2017 Posts: 162
|
exerk wrote: |
vicks_mq wrote: |
...Can I move these message to another Local Q which has CAPEXPRY of 5 days and will that change these messages new expiry time to 5 days?... |
Nope. The doc clearly states "...An expiry time specified by an application, which is lower than the CAPEXPRY value will be used...".
RfhUtil and GET/PUT with a new expiry value? |
Hi Exerk, I think I got what you mean. when the source application put message into Local Q#1 which has expiry of 24 hours, it sets the expiry of messgage to 24 hours. Now, I cant change this value it even if I move those message to another queue with capexpry of 5 days using QLOAD program .
So once a value has been set, it is set, until it is a lower value. right? |
|
Back to top |
|
 |
Vitor |
Posted: Wed May 01, 2019 8:53 am Post subject: Re: Can we increase the Message expire time using CAPEXPRY |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
vicks_mq wrote: |
Now, I cant change this value it even if I move those message to another queue with capexpry of 5 days using QLOAD program . |
Correct, because the messages have an expiry value lower than CAPEXPRY, which doesn't set the expiry but caps the expiry. Clue's in the name.
But:
exerk wrote: |
RfhUtil and GET/PUT with a new expiry value? |
This would work, or a few lines of C/Java/PHP/MQ aware language of your choice. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
vicks_mq |
Posted: Wed May 01, 2019 11:29 am Post subject: Re: Can we increase the Message expire time using CAPEXPRY |
|
|
Disciple
Joined: 03 Oct 2017 Posts: 162
|
Vitor wrote: |
This would work, or a few lines of C/Java/PHP/MQ aware language of your choice. |
Yes, tried and it did work. |
|
Back to top |
|
 |
gbaddeley |
Posted: Wed May 01, 2019 5:08 pm Post subject: Re: Can we increase the Message expire time using CAPEXPRY |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
vicks_mq wrote: |
Hi All, we have a situation where we have set our CAPEXPRY for 24 hours in our local Q, Sending application has send around 1000 messages but receiving application is down and not yet fixed. Now when the message arrived in the Queue because the CAPEXPRY was 24 hours , so all the messages has their expiry interval set to 24 hours. |
You set CAPEXPRY because of design decision regarding quality of service. The messages are disposable after 24 hours. You should review the decision on this queue and other queues. In general, MQ message expiry should only ever be used if messages have a finite useful life. _________________ Glenn |
|
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
|
|
|
|