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 IBM MQ Support » COPY Messages between QM's

Post new topic  Reply to topic Goto page 1, 2  Next
 COPY Messages between QM's « View previous topic :: View next topic » 
Author Message
vijayakumar
PostPosted: Thu Sep 02, 2010 3:12 am    Post subject: COPY Messages between QM's Reply with quote

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
View user's profile Send private message
AkankshA
PostPosted: Thu Sep 02, 2010 3:38 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Thu Sep 02, 2010 4:26 am    Post subject: Reply with quote

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
View user's profile Send private message
mqtablet
PostPosted: Thu Sep 02, 2010 9:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
AkankshA
PostPosted: Thu Sep 02, 2010 9:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
exerk
PostPosted: Fri Sep 03, 2010 12:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Fri Sep 03, 2010 4:47 am    Post subject: Reply with quote

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
View user's profile Send private message
vijayakumar
PostPosted: Sun Sep 05, 2010 10:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Mon Sep 06, 2010 12:03 am    Post subject: Reply with quote

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
View user's profile Send private message
vijayakumar
PostPosted: Mon Sep 06, 2010 12:35 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Mon Sep 06, 2010 12:41 am    Post subject: Reply with quote

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
View user's profile Send private message
vijayakumar
PostPosted: Mon Sep 06, 2010 10:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Mon Sep 06, 2010 11:37 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

It doesn't matter where the QMs are. MQ can route messages as required.

I'm afraid that if you don't understand this basic premise of MQ - you need to read the manuals before asking questions, try this one.

http://www.redbooks.ibm.com/abstracts/redp0021.html?Open
Back to top
View user's profile Send private message
vijayakumar
PostPosted: Tue Sep 07, 2010 12:31 am    Post subject: Reply with quote

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
View user's profile Send private message
nathanw
PostPosted: Tue Sep 07, 2010 12:34 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » COPY Messages between QM's
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.