Author |
Message
|
B.Nofal |
Posted: Mon Jun 02, 2008 4:09 am Post subject: Connecting 2 local queue managers |
|
|
Newbie
Joined: 02 Jun 2008 Posts: 2
|
Hi,
I'm using MQ V 6.0.
I want to create a (Sender-Receiver) channel between 2 local queue managers (on the same machine).
The problem is that the channel fails to be started, given that each queue manager has a listener on a different port than the other.
In the sender channel I'm setting the connection name as localhost(1416)
which is the port that the other queue manager listens to.
The error thrown in the logs is:
AMQ9208: Error on receive from host localhost (127.0.0.1).
Please advise.
Thanks. |
|
Back to top |
|
 |
Gaya3 |
Posted: Mon Jun 02, 2008 4:13 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
your receiver point is not properly set.
Re-verify the same.
Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
crossland |
Posted: Mon Jun 02, 2008 4:38 am Post subject: |
|
|
Master
Joined: 26 Jun 2001 Posts: 248
|
|
Back to top |
|
 |
B.Nofal |
Posted: Mon Jun 02, 2008 3:01 pm Post subject: |
|
|
Newbie
Joined: 02 Jun 2008 Posts: 2
|
Yes, the receiver listener is started |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Jun 02, 2008 3:54 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Post some things here:
.platform
.mq version
.name of queue manager (sender)
.name of queue manager (receiver)
.channel definition (sender)
.channel definition (receiver)
.command you used to start listener (or object definition) _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
AkankshA |
Posted: Mon Jun 02, 2008 10:27 pm Post subject: Re: Connecting 2 local queue managers |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
B.Nofal wrote: |
Hi,
which is the port that the other queue manager listens to.
|
the other queue manager can listen to any port(except 1416)... BUT u need to create n run a listener on that port
B.Nofal wrote: |
Hi,
I want to create a (Sender-Receiver) channel between 2 local queue managers (on the same machine).
|
Can i assume that u have followed and verified the steps as per intercommunication manual...
can u tell us what all u did ? _________________ Cheers |
|
Back to top |
|
 |
vinaysnarayan |
Posted: Mon Jun 02, 2008 11:51 pm Post subject: |
|
|
 Newbie
Joined: 20 May 2008 Posts: 1
|
Probably the problem is with the TCP/IP port. Stop the listener, change the listener port of both the queue managers, start the listeners and try again.
Hope this works.
Regards,
Vinay |
|
Back to top |
|
 |
Gemz |
Posted: Thu Jun 12, 2008 7:40 am Post subject: |
|
|
 Centurion
Joined: 14 Jan 2008 Posts: 124
|
|
Back to top |
|
 |
MaxMax |
Posted: Thu Jul 10, 2008 3:36 am Post subject: Re: Connecting 2 local queue managers |
|
|
Newbie
Joined: 10 Apr 2007 Posts: 6
|
B.Nofal wrote: |
Hi,
I'm using MQ V 6.0.
I want to create a (Sender-Receiver) channel between 2 local queue managers (on the same machine).
The problem is that the channel fails to be started, given that each queue manager has a listener on a different port than the other.
In the sender channel I'm setting the connection name as localhost(1416)
which is the port that the other queue manager listens to.
The error thrown in the logs is:
AMQ9208: Error on receive from host localhost (127.0.0.1).
Please advise.
Thanks. |
I think that something goes wrong with port numbers of listener/sender channels.
I have created similar scheme but listeners were binded not to a loopback IP address but to the IP address of server's NIC. In my case – 10.0.111.8.
1) create QMGR - QMTST.SIM
crtmqm -u DEAD.Q QMTST.SIM
2) start newly created QMGR
strmqm QMTST.SIM
3) configure this QMGR.
Listener is binded to 10.0.111.8:2020
Local Queue - SIM.LQ
Remote Queue - SIM.RQ
Transmission Queue - TRANSMISSION_SIM
Sender Channel - SIM.TO.SIM2 that points to 10.0.111.8:2121 (Remote listener is binded to 10.0.111.8:2121)
Receiver Channel - SIM2.TO.SIM
DEFINE LISTENER ('LSNR_SIM') TRPTYPE(TCP) IPADDR('10.0.111.8') PORT (2020)
DEFINE QLOCAL('SIM.LQ')
DEFINE QLOCAL('TRANSMISSION_SIM') USAGE(XMITQ)
DEFINE QREMOTE('SIM.RQ') RNAME('SIM2.LQ') RQMNAME('SIM2') XMITQ('TRANSMISSION_SIM') DEFPSIST(YES)
DEFINE CHL ('SIM.TO.SIM2') +
CHLTYPE(SDR) TRPTYPE(TCP) +
CONNAME('10.0.111.8 (2121)') +
XMITQ('TRANSMISSION_SIM') +
DISCINT (0)
DEFINE CHL ('SIM2.TO.SIM') +
CHLTYPE(RCVR) TRPTYPE(TCP)
4) create QMGR - QMTST.SIM2 an opposite QMANGER
crtmqm -u DEAD.Q QMTST.SIM2
2) start newly created QMGR
strmqm QMTST.SIM2
3) configure this QMGR.
Listener is binded to 10.0.111.8:2121
Local Queue – SIM2.LQ
Remote Queue – SIM2.RQ
Transmission Queue - TRANSMISSION_SIM2
Sender Channel - SIM2.TO.SIM that points to 10.0.111.8:2020 (Remote listener is binded to 10.0.111.8:2020)
Receiver Channel - SIM2.TO.SIM
DEFINE LISTENER ('LSNR_SIM2') TRPTYPE(TCP) IPADDR('10.0.111.8') PORT (2121)
DEFINE QLOCAL('SIM2.LQ')
DEFINE QLOCAL('TRANSMISSION_SIM2') USAGE(XMITQ)
DEFINE QREMOTE('SIM2.RQ') RNAME('SIM.LQ') RQMNAME('SIM') XMITQ('TRANSMISSION_SIM2') DEFPSIST(YES)
DEFINE CHL ('SIM2.TO.SIM') +
CHLTYPE(SDR) TRPTYPE(TCP) +
CONNAME('10.0.111.8 (2020)') +
XMITQ('TRANSMISSION_SIM2') +
DISCINT (0)
DEFINE CHL ('SIM.TO.SIM2') +
CHLTYPE(RCVR) TRPTYPE(TCP) |
|
Back to top |
|
 |
|