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 IndexGeneral DiscussionMQ - Copy/Mirror Messages

Post new topicReply to topic
MQ - Copy/Mirror Messages View previous topic :: View next topic
Author Message
bpsree
PostPosted: Fri Oct 01, 2004 7:16 am Post subject: MQ - Copy/Mirror Messages Reply with quote

Novice

Joined: 13 Sep 2004
Posts: 18

We have an AS/400 system, from where messages are being placed by an application into “Queue1”, local Queue on the production box.

We would like to duplicate (copy/mirror) messages put onto “Queue1” on the production box to a local queue “LocalQ1” on another Testing Server(Testing box).

Is it possible to duplicate/copy/mirror the messages from “Queue1” on the production box to a local queue “LocalQ1” on the Testing box? If so, how to get this done?

How to configure MQ series in such a way that when the AS/400 program puts a message on “Queue1” on the production box so that a copy of the message is put on “LocalQ1” on the Testing box.

Thank you
Back to top
View user's profile Send private message
csmith28
PostPosted: Fri Oct 01, 2004 7:37 am Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

Is there any reason why the application can't send two messages. One to the Production MQManager and one to the Test MQManager?

I was trying to think of a way to take advantage of TRIGGERING on the Production local queue. You could maybe write some code that would TRIGGER a PROCESS to copy the message then PUT it to a QRemote that would send the message to the Test MQManager. But if there is an application that has an open GET against the Prod QLocal I am not sure if the PROCESS you define would have time to get a copy of the message before the application pulls if off the Queue.
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
clindsey
PostPosted: Fri Oct 01, 2004 8:05 am Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

There was a similar question yesterday.... maybe Joan works with you??
Take a look at it anyway.
http://www.mqseries.net/phpBB2/viewtopic.php?t=17940.

Using triggering as csmith suggested is viable as well. I prefer the api exit implementation now that it is available. But if you want to try with triggering, click on the repository link above and select c programs. There is an early implementation of mirrorq that uses triggering. You will have to compile the source file for AS/400. If you don't have a c compiler, you could rewrite this portion in another language. It is very trivial. Also, there is one other change you need to make. I testing this using trigger every and didn't change the final copy. You should change the mqsc definition to use trigger first.

Charlie
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Fri Oct 01, 2004 8:08 am Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

You have 4 options:

- Install mirrorq SupportPac, make connections between the queue mangers and define a remote queue on prod to the dev queue.
http://www.developer.ibm.com/tech/sampmq.html

- Install MMX, Message Multiplexer (FREE C source code from Capitalware), make connections between the queue mangers and define a remote queue on prod to the dev queue.
http://www.capitalware.biz/sample_mqseries.html#ccode

- Purchase MQ Visual Edit (GUI program) and install it on DEV (or your workstation). Then have the user select a 'Backup' (in the GUI) of the PROD queue selecting all messages and write it to a file (includes MQMD and data). Then have MQBT 'Restore' the messages to the DEV queue.
For more info or to download a 30-day trial, go to:
http://www.capitalware.biz/mqbt_overview.html

- Purchase MQ Batch Tool and install it on DEV as a scheduled task (crontab entry). From DEV, have MQBT do a 'Backup' of the PROD queue (all messages) and write it to a file (includes MQMD and data). Then have MQBT 'Restore' the messages to the DEV queue.
For more info or to download a 30-day trial, go to:
http://www.capitalware.biz/mqve_overview.html

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
bpsree
PostPosted: Fri Oct 01, 2004 8:35 am Post subject: Reply with quote

Novice

Joined: 13 Sep 2004
Posts: 18

Thank you all for the suggestions.
I will try if we can ask OTHER team members if they can modify the AS400 module that puts messages. but I am not sure if I get a +ve reply.

Roger.
Quote:
- Install mirrorq SupportPac, make connections between the queue mangers and define a remote queue on prod to the dev queue.
http://www.developer.ibm.com/tech/sampmq.html


Let me clarify if I understand it correctly.
The message are put on AS/400. The queue is a remote queue pointing to a local queue "LocalQ1" on a WIndows2000 server. Now I need to install the mirrorq support pack on Windows 2000 box. right?
Once installed, I will have to define a remote queue say "RQ2". Make it point to local queue "LocalQ2" on my testbox (which is another windows2000box.)

Please confirm if this is correct
Back to top
View user's profile Send private message
clindsey
PostPosted: Fri Oct 01, 2004 10:20 am Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

Quote:

Let me clarify if I understand it correctly.
The message are put on AS/400. The queue is a remote queue pointing to a local queue "LocalQ1" on a WIndows2000 server. Now I need to install the mirrorq support pack on Windows 2000 box. right?
Once installed, I will have to define a remote queue say "RQ2". Make it point to local queue "LocalQ2" on my testbox (which is another windows2000box


This is correct.

Charlie
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexGeneral DiscussionMQ - Copy/Mirror Messages
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.