Posted: Wed May 27, 2009 11:18 am Post subject: MIRRORQ
Newbie
Joined: 27 May 2009 Posts: 1
Hi all-
I am using MIRRORQ to "copy" trades from one local queue to a remote queue to send to a separate server for dr/archive purposes. The issue that I am having is that after mirrorq runs it "moves" not "copies" the messages. I want to keep the original message in the source q but it keeps getting cleared. Any ideas? Is it possible to actually mirror the messages?
Posted: Wed May 27, 2009 12:30 pm Post subject: Re: MIRRORQ
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
wastenzel wrote:
The issue that I am having is that after mirrorq runs it "moves" not "copies" the messages. I want to keep the original message in the source q but it keeps getting cleared. Any ideas? Is it possible to actually mirror the messages?
A couple of points:
- the mirrorq exit is a piece of sample code not considered production strength. AFAIK the code as supplied does a copy not a move, and if you're using it in a high volume share trading environment be sure that non-production strength code will hold with some stress testing.
- as a piece of sample code you can change it to do whatever you want, including fixing whatever bug has been introduced that's causing the destructive read (if it is a bug in the exit).
- WMQ exits are considered an advanced task. It's surprisingly easy to cripple a queue manager with an inefficient exit; it's not that hard to bring a queue manager crashing down. Testing is everything.
- Browse through the forum to see a number of possibly useful discussions on why mirroring messages isn't always the best idea. _________________ Honesty is the best policy.
Insanity is the best defence.
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