Author |
Message
|
nosnhoj |
Posted: Wed Apr 26, 2006 8:10 am Post subject: Message routing |
|
|
Apprentice
Joined: 07 Sep 2005 Posts: 40 Location: Markham On.
|
I'm disappointed in myself for not knowing this, and i'm still reading over chapter 3 of interommunication (but it's not making it any better)
I have 2 QM's - QM1 and QM2 on the same machine. I want messages sent to a particular queue on QM1 to end up on QM2 (QM1 simply a 'pass thru')
I know I can do this with a remote queue def, but I need to define channels and an xmitq to make it work. Am i nuts, or is there an easier way than defining channels to a different QM on the same server? |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Apr 26, 2006 8:13 am Post subject: Re: Message routing |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
nosnhoj wrote: |
Am i nuts, or is there an easier way than defining channels to a different QM on the same server? |
I guess your nuts, because there is no way to get messages between QMs without channels. Unless you are on the mainframe and using Queue Sharing Groups. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Apr 26, 2006 8:14 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Now, Peter. It's not impossible to do it without channels. It's just a waste of time.
All you really need to do is rewrite the MCA - that is, write an application that reads messages from one queue and writes them to another. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
nosnhoj |
Posted: Wed Apr 26, 2006 8:16 am Post subject: |
|
|
Apprentice
Joined: 07 Sep 2005 Posts: 40 Location: Markham On.
|
My brain knew that... but the rest of my head was telling me that it should be a 'no brainer'. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Apr 26, 2006 8:17 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
ah, thinking outside the box! Message is on QueueA on QM1. App connects in bindings mode to QM1 and gets the message from QueueA. It then connects to QM2 in bindings mode and puts the messages to QueueB on QM2.
somehow I don't think this is what he was after, but technically, its the answer!  _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Apr 26, 2006 8:30 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
PeterPotkay wrote: |
thinking outside the box! |
MQ is a networking protocol... so we all have to think between the boxes!  _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
LuisFer |
Posted: Wed Apr 26, 2006 8:55 am Post subject: |
|
|
 Partisan
Joined: 17 Aug 2002 Posts: 302
|
Make a litlle client program MQCONNs to the two QMgrs , opens the Qs an wait for Messages On QM1 , Puting on QM2. |
|
Back to top |
|
 |
|