|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Q program and message cloning |
« View previous topic :: View next topic » |
Author |
Message
|
czaszek |
Posted: Thu Jan 31, 2008 4:23 am Post subject: Q program and message cloning |
|
|
Apprentice
Joined: 30 May 2006 Posts: 36 Location: Poland
|
Hi All
I need to clone message put into one queue and to send the cloned message to another queue in another queue manager.
I am going to use the Q program (MQ samples).
Because it affects our prodution system I would like to know which fields (parts) of the message will be changed by this program:
- off course put date/time will be different, but what about message id's and other message properties.
Thanks in advance.
Lukas |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jan 31, 2008 7:59 am Post subject: Re: Q program and message cloning |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
czaszek wrote: |
I am going to use the Q program (MQ samples). |
Pedantically it's a support pac not a sample
czaszek wrote: |
Because it affects our prodution system |
Why would you be using something like this in production? Is it to get round a problem or is it part of an ongoing process? If the latter it's not exactly the best way
czaszek wrote: |
what about message id's |
Under normal circumstances you'd want new ones. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Jan 31, 2008 10:37 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Cześć Lukas.
If you look at the Readme file included with the Support Pack you'll find a list of switches that will let you control what the outgoing message will look like.
For instance, if you pass all context, the put date and time will be maintained.
Quote: |
-C<Opts> Controls whether the message context should be transferred from
input queue to output queue
a - pass all context
i - pass identity context
A - set all context
I - set identity context
|
I'm not sure about hot to maintain the Message Id as I have never used this utility, but as Vitor said its a bad idea to have 2 messages in your MQ network with the same ID.
If possible you should change the original putting program to do 2 puts, or to use an MQ distribution list. You might want to do a search on "mirrorq", but again that's not a fully supported solution.
What is your business requirement that makes you want to clone these messages. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
czaszek |
Posted: Mon Feb 11, 2008 11:30 pm Post subject: |
|
|
Apprentice
Joined: 30 May 2006 Posts: 36 Location: Poland
|
Czesc!
Many Thanks for your Help! |
|
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
|
|
|
|