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 » General Discussion » Q program and message cloning

Post new topic  Reply to topic
 Q program and message cloning « View previous topic :: View next topic » 
Author Message
czaszek
PostPosted: Thu Jan 31, 2008 4:23 am    Post subject: Q program and message cloning Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Jan 31, 2008 7:59 am    Post subject: Re: Q program and message cloning Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Thu Jan 31, 2008 10:37 am    Post subject: Reply with quote

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
View user's profile Send private message
czaszek
PostPosted: Mon Feb 11, 2008 11:30 pm    Post subject: Reply with quote

Apprentice

Joined: 30 May 2006
Posts: 36
Location: Poland

Czesc!

Many Thanks for your Help!
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 » General Discussion » Q program and message cloning
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.