|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQSERIES MIRROR EXIT on Z/OS |
« View previous topic :: View next topic » |
Author |
Message
|
dlperea |
Posted: Mon Jun 29, 2009 12:10 am Post subject: MQSERIES MIRROR EXIT on Z/OS |
|
|
Newbie
Joined: 10 Jan 2008 Posts: 3
|
Hi everybody,
I need to copy messages from a queue to another before they expire.
Scenario: I have a queue defined (Z/OS environment) with 'EXPIRATION PERIOD' specified. I need to copy the expired messages to a queue/file or wherever, before those messages expire.
I found some topics related to a mirror exit (but only on other environments) but not in Z/OS MQ.
Thanks a lot in advanced, any 'hint' will be really appreciated...
Best Regards.
David L |
|
Back to top |
|
 |
exerk |
Posted: Mon Jun 29, 2009 12:17 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Look in the panels (I can't remember which one, and I'm not logged into a z/OS queue manager presently) but there is a facility within z/OS to copy messages from one queue to another, however, I think it will also 'copy' the expiry, so may not be of use to you. _________________ 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 |
|
 |
Mr Butcher |
Posted: Mon Jun 29, 2009 12:25 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
No. The MQ supplied panels (csqorexx stuff) allow you to move messages from one queue to another, but it does not allow you to copy messages.
mirrorq is an api exit, that one does not exist for z/OS (Batch).
you could use csqutil load and save options to copy messages in batch, but this will also copy the MQMD header, so the reloaded messages will expire.
it also depends, whether this is a one time action or something, that should run regulary or automatically. for one time action check utilities like "Q" program (MA01), here you can copy messages and you have the possibility to create an own MQMD so messages will not expire. For automatic solution, you must write your own program that is maybe triggered. for messages that come in via channel, you could write a message exit to store a copy of the message.
however, if someone needs to catch expired messages before they expired, then this smells like a bad application design. maybe you should start at that point, and not running for utilities. _________________ Regards, Butcher |
|
Back to top |
|
 |
exerk |
Posted: Mon Jun 29, 2009 12:35 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Mr Butcher wrote: |
No. The MQ supplied panels (csqorexx stuff) allow you to move messages from one queue to another, but it does not allow you to copy messages... |
Thank you for the correction...me shooting from the lip again  _________________ 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 |
|
 |
Vitor |
Posted: Mon Jun 29, 2009 2:57 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Mr Butcher wrote: |
mirrorq is an api exit, that one does not exist for z/OS (Batch). |
Mr Butcher wrote: |
however, if someone needs to catch expired messages before they expired, then this smells like a bad application design. |
If these messages are so important you need to keep a copy, why are they set to expire? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
gbaddeley |
Posted: Mon Jun 29, 2009 5:27 pm Post subject: Re: MQSERIES MIRROR EXIT on Z/OS |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
dlperea wrote: |
Hi everybody, ...
Scenario: I have a queue defined (Z/OS environment) with 'EXPIRATION PERIOD' specified. |
What queue attribute are you referring to? Expiration is a property of individual messages, not queue objects.
Quote: |
I need to copy the expired messages to a queue/file or wherever, before those messages expire. |
This smells of a bad MQ messaging design, as already mentioned in this thread. _________________ Glenn |
|
Back to top |
|
 |
dlperea |
Posted: Tue Jun 30, 2009 9:32 am Post subject: |
|
|
Newbie
Joined: 10 Jan 2008 Posts: 3
|
Thanks for your answers....
As you said, is a VERY bad design, but that is something I cannot change.
The bussiness scenario is really complex, the application development is done by a different company...I'm only working in the System Architecture Area...
Anyway I really appreciate your help.
BR.
David Lázaro.. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Jun 30, 2009 11:10 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9471 Location: US: west coast, almost. Otherwise, enroute.
|
As has been discussed, any application that copies (creates an exact replicate) of a message with expiry set, will result in a message with expiry set.
Note also that expiry is the total time in any queue, not just the queue that the application opened. Total time includes xmit queues, dead-letter queue.
You will need to write an application that copies everything to the new message, but modify expiry so that the message doesn't expire (or expires much later).
If the original messages are set to expire in one or two seconds, the messages may expire before you can MQGET them to copy them.
Again, bad design. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
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
|
|
|
|