Author |
Message
|
vikrant |
Posted: Mon Jan 10, 2011 4:52 am Post subject: multiple qmanager on sigle port and single host |
|
|
Newbie
Joined: 10 Jan 2011 Posts: 4
|
Hi,
I want to move two different qmanger running on two different machines and on two different ports on to a single machine .
I know running two different qmanager on same port and single machine is not possible , Can this be done using qmanager alias ?
Thanks and Regards
Vikrant |
|
Back to top |
|
 |
fatherjack |
Posted: Mon Jan 10, 2011 5:15 am Post subject: Re: multiple qmanager on sigle port and single host |
|
|
 Knight
Joined: 14 Apr 2010 Posts: 522 Location: Craggy Island
|
vikrant wrote: |
I know running two different qmanager on same port and single machine is not possible , Can this be done using qmanager alias ? |
Why would you want two processes, queue managers or anything else for that matter, listening on the same port? _________________ Never let the facts get in the way of a good theory. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jan 10, 2011 5:20 am Post subject: Re: multiple qmanager on sigle port and single host |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
vikrant wrote: |
I know running two different qmanager on same port and single machine is not possible , Can this be done using qmanager alias ? |
If what you're saying is that you currently have 2 queue managers & you want to replace them with a single queue manager that handles traffic for both queue managers then yes, you could use an alias to readdress traffic to the "missing" queue manager. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jan 10, 2011 5:57 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You can configure two queue managers on the same machine, and they can both have a listener running on port 1414.
Just not on the same IP address.
You *can* configure the listener to bind ONLY to a *specific* IP address. It doesn't do this by *default*.
You could even have the same hostname resolve to *both* IP addresses.
Your applications might not like not knowing which qmgr they have connected to, however.
OR they might be just fine with that. But your other qmgrs won't be.... |
|
Back to top |
|
 |
vikrant |
Posted: Tue Mar 29, 2011 12:57 am Post subject: Re: multiple qmanager on sigle port and single host |
|
|
Newbie
Joined: 10 Jan 2011 Posts: 4
|
@ mqjeff . I assigned one additional IP to my linux box and then tried to bind the listener on this additional IP for the qmanager on the same port (1416) . And get below error
runmqlsr -t tcp -p 1416 -i 10.10.212.165 -m TESTQM
03/29/2011 07:19:40 AM AMQ9218: The TCP/IP listener program could not bind to port number 1416.
this port is already being used by another qmgr on the very same machine |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Mar 29, 2011 1:24 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
And how did you configure the listener for the OTHER qm? |
|
Back to top |
|
 |
vikrant |
Posted: Tue Mar 29, 2011 1:30 am Post subject: Re: multiple qmanager on sigle port and single host |
|
|
Newbie
Joined: 10 Jan 2011 Posts: 4
|
runmqlsr -t tcp -p 1416 -m FXQM1
And i checked the netstat on the machine and can see that 1416 is bind to other IP .
tcp 0 0 10.10.212.15:1416 |
|
Back to top |
|
 |
exerk |
Posted: Tue Mar 29, 2011 1:41 am Post subject: Re: multiple qmanager on sigle port and single host |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
vikrant wrote: |
runmqlsr -t tcp -p 1416 -m FXQM1
And i checked the netstat on the machine and can see that 1416 is bind to other IP .
tcp 0 0 10.10.212.15:1416 |
So you didn't read the manual properly, particularly the last sentence of the -i IPAddr block of the runmqlsr command (note that I make a statement, not ask a question). And why are you using that command anyway? Why are you not using a listener object? _________________ 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 |
|
 |
|