|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Forwarding messages to a second destination |
« View previous topic :: View next topic » |
Author |
Message
|
bombyk |
Posted: Thu Mar 14, 2002 9:51 am Post subject: |
|
|
Novice
Joined: 06 Nov 2001 Posts: 10
|
I am currently receiving MQ messages on a Windows 2000 queue. Can I set up the queue manager on this machine to forward automatically a copy of the each message to a queue on another Win2000 machine while retaining them on the first queue? |
|
Back to top |
|
 |
bduncan |
Posted: Thu Mar 14, 2002 3:23 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
There's a few choices:
1) Programmatically. You can write a small C program that gets trigger off the queue, and simply gets the message, and then puts it to the next queue basically moving it along its way. I wrote a program, getput.c that does just this (I might be able to dig it up) and used it pretty extensively at my last company. It proved quite reliable...
2) In the queue manager. There are a few different ways, but basically it revolves around using alias and/or remote queues. Your first option (if you ALWAYS plan on forwarding the messages) is to delete the local queue on the Win2000 machine, and create a remote queue with the same name as the local queue that points to the queue you want the message to actually be forwarded to. The other, more flexible method, is to create an alias queue (I believe you can have a local queue and alias queue on the same queue manager with the same name. If not, you'll have to delete the local queue, and create the alias queue, and then create the local queue again with some OTHER name). Now this alias queue will initially point to the queue you wish the messages to be forwarded to. But if at a future time, you wish to stop forwarding, you simply alter the alias queue to point to the local queue again, and viola, no more forwarding... This technique is what I would recommend for simplicity's sake.
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
StefanSievert |
Posted: Thu Mar 14, 2002 4:09 pm Post subject: |
|
|
 Partisan
Joined: 28 Oct 2001 Posts: 333 Location: San Francisco
|
Brandon,
wouldn't option 2 imply that messages will NOT be retained on the 'forwarding' queue manager?
Hmm...
Stefan
_________________ Stefan Sievert
IBM Certified * WebSphere MQ |
|
Back to top |
|
 |
RogerLacroix |
Posted: Thu Mar 14, 2002 9:58 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
I have written a utility called MMX (Message Multiplexer) that will move a
message from a queue to "n" queues. (or in your case 2 queues). It also
preserves the message context.
You can download it from my web site at:
http://www.geocities.com/capitalware/mqseries.html
The C source is included along with makefiles for WinNT and various Unix platforms.
Enjoy
Roger...
|
|
Back to top |
|
 |
bduncan |
Posted: Fri Mar 15, 2002 12:14 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Whoops... Good catch Stefan; I seemed to have forgotten the fact that the poster wanted to retain the messages on the forwarding queue manager...
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
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
|
|
|
|