Author |
Message
|
vijayakumar |
Posted: Thu Sep 02, 2010 3:12 am Post subject: COPY Messages between QM's |
|
|
Centurion
Joined: 01 Aug 2010 Posts: 101
|
I have two QM's like XAMP and XAMPS and i have local queues like App1 in XAMP and App2 in XAMPS .
My question :
Is it possible to copy the message from one QM to another QM .
ie if a message comes to APP1 in XAMP , copy of the message should comes to APP2 in XAMPS . I dont want to move the messages from Queue APP1 to APP2 .
Please someone help me on this .
Thanks
vijay |
|
Back to top |
|
 |
AkankshA |
Posted: Thu Sep 02, 2010 3:38 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
did you search on the forum for this ??
I am sure this has been asked and answered many many times before _________________ Cheers |
|
Back to top |
|
 |
Vitor |
Posted: Thu Sep 02, 2010 4:26 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
AkankshA wrote: |
did you search on the forum for this ?? |
Unlikely. I got a ton of hits using the subject of this thread as a search term.....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqtablet |
Posted: Thu Sep 02, 2010 9:34 pm Post subject: |
|
|
Acolyte
Joined: 09 Jun 2009 Posts: 71
|
Whats the version of MQ you are using? If you are using MQ 7, you can do it with pub/sub. |
|
Back to top |
|
 |
AkankshA |
Posted: Thu Sep 02, 2010 9:42 pm Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
mqtablet wrote: |
Whats the version of MQ you are using? If you are using MQ 7, you can do it with pub/sub. |
I would never prefer taking the pains of setting up a complete pub sub architecture just to copy message from one queue to another..
have i been too lazy..  _________________ Cheers |
|
Back to top |
|
 |
exerk |
Posted: Fri Sep 03, 2010 12:25 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
AkankshA wrote: |
mqtablet wrote: |
Whats the version of MQ you are using? If you are using MQ 7, you can do it with pub/sub. |
I would never prefer taking the pains of setting up a complete pub sub architecture just to copy message from one queue to another..
have i been too lazy..  |
I would hazard not lazy, but not had the time to 'play' with it?
Try THIS (middle of the page, and with thanks to PeterPotkay) _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Sep 03, 2010 4:47 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
AkankshA wrote: |
have i been too lazy..  |
It's entirely a question of if this move needs to be done on an ongoing basis (and therefore warrents the time to set up an architectural solution) or if you just need to move some messages on an ad-hoc or intermittent basis.
No one solution fits all. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
vijayakumar |
Posted: Sun Sep 05, 2010 10:19 pm Post subject: |
|
|
Centurion
Joined: 01 Aug 2010 Posts: 101
|
Vitor ,
Its something like whenever we receive a message in local queue App1 of QM XAMP , we need to take a copy of the message and put it in to the Queue App2 in XAMPS .
Thanks all for your replies . |
|
Back to top |
|
 |
zpat |
Posted: Mon Sep 06, 2010 12:03 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
I keep answering this as well.
If you have WMB, code a simple fan out message flow.
Or write a program to get from one queue and put to two queues (either triggered or long running). You might be able to code a script to do this using support pac MA01.
A ready to run open source program is available here:
http://www.capitalware.biz/mmx_overview.html |
|
Back to top |
|
 |
vijayakumar |
Posted: Mon Sep 06, 2010 12:35 am Post subject: |
|
|
Centurion
Joined: 01 Aug 2010 Posts: 101
|
Jedi ,
Thanks for ur reply .
I have WMB . can you please tell me how to write a fan out message flow fro this scenario ? |
|
Back to top |
|
 |
zpat |
Posted: Mon Sep 06, 2010 12:41 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
This is really day 1, lesson 1 for WMB training.
Create a message flow with one MQInput Node (queue A), wire up two MQoutput nodes from this (one for queue B and one for queue C).
Message arrives on queue A, it will then appear on B and C.
The application does not process queue A. It processes B (or C).
You need to arrange for the incoming messages to arrive on the WMB broker's QM and then the outgoing messages to be sent where needed, this is done with standard MQ channels and local/remote queues. |
|
Back to top |
|
 |
vijayakumar |
Posted: Mon Sep 06, 2010 10:50 pm Post subject: |
|
|
Centurion
Joined: 01 Aug 2010 Posts: 101
|
Jedi ,
Thanks for ur reply .
My scenario is like we have two different QM's . Pick the message from Queue1 in QM1 and send it to Queue1 in QM2 .
Its possible to set two Qm's in a single Broker and use the flow design wht u explained. |
|
Back to top |
|
 |
zpat |
Posted: Mon Sep 06, 2010 11:37 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
|
Back to top |
|
 |
vijayakumar |
Posted: Tue Sep 07, 2010 12:31 am Post subject: |
|
|
Centurion
Joined: 01 Aug 2010 Posts: 101
|
Jedi ,
I believe u understood wrongly .
What i tried to ask was whether is t possible to use two Qm's by a single broker and configmgr ?
i dont think so .
Please suggest on this . |
|
Back to top |
|
 |
nathanw |
Posted: Tue Sep 07, 2010 12:34 am Post subject: |
|
|
 Knight
Joined: 14 Jul 2004 Posts: 550
|
Considering teh poster's name was zpat and not jedi I woucl consider learning the layout of the boards before asking questions and / or questioning the posters _________________ Who is General Failure and why is he reading my hard drive?
Artificial Intelligence stands no chance against Natural Stupidity.
Only the User Trace Speaks The Truth  |
|
Back to top |
|
 |
|