Author |
Message
|
samsam007 |
Posted: Thu Dec 04, 2008 8:31 pm Post subject: creating two server-connection channels |
|
|
 Centurion
Joined: 30 Oct 2008 Posts: 107
|
Hi,
I want to create two server-connection channels for the Qmgr running in our production system. A server-connection channel is listening on port 1414, another is listening on port 1450.
currently I am using the following command to start the listener, but it is not specific to any channel
start runmqlsr /t TCP /m QM.ITSMMS /p 1414
the following is the mqsc scripts for creating the channels, queues:
* Channels for Clients
DEFINE CHANNEL (TQM2.TCP.CH) CHLTYPE (SVRCONN) TRPTYPE (TCP) +
MCAUSER (' ') REPLACE
*********************************************
* DEFINE LOCAL (QM.MQT2) "SERVICE" QUEUES *
*********************************************
* Traffic Data System queues
DEFINE QLOCAL ('NY.TD.INPUT') REPLACE +
DESCR ('Traffic Data System input queue') +
DEFPSIST (NO)
DEFINE QLOCAL ('NY.TD.OUTPUT') REPLACE +
DESCR ('Traffic Data System output queue') +
DEFPSIST (NO)
Thanks |
|
Back to top |
|
 |
AkankshA |
Posted: Thu Dec 04, 2008 9:00 pm Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
i could not find any question in your post  _________________ Cheers |
|
Back to top |
|
 |
samsam007 |
Posted: Thu Dec 04, 2008 9:16 pm Post subject: Re: creating two server-connection channels |
|
|
 Centurion
Joined: 30 Oct 2008 Posts: 107
|
samsam007 wrote: |
Hi,
I want to create two server-connection channels for the Qmgr running in our production system. A server-connection channel is listening on port 1414, another is listening on port 1450.
currently I am using the following command to start the listener, but it is not specific to any channel
start runmqlsr /t TCP /m QM.ITSMMS /p 1414
the following is the mqsc scripts for creating the channels, queues:
* Channels for Clients
DEFINE CHANNEL (TQM2.TCP.CH) CHLTYPE (SVRCONN) TRPTYPE (TCP) +
MCAUSER (' ') REPLACE
*********************************************
* DEFINE LOCAL (QM.MQT2) "SERVICE" QUEUES *
*********************************************
* Traffic Data System queues
DEFINE QLOCAL ('NY.TD.INPUT') REPLACE +
DESCR ('Traffic Data System input queue') +
DEFPSIST (NO)
DEFINE QLOCAL ('NY.TD.OUTPUT') REPLACE +
DESCR ('Traffic Data System output queue') +
DEFPSIST (NO)
Thanks |
Sorry, I forgot put down my question.
What if I change the listener command to the one with the Define statement like below:
DEFINE CHANNEL (TQM2.TCP.CH1) CHLTYPE (SVRCONN) TRPTYPE (TCP) +
CONNAME('1.2.3.4(1414)') +
MCAUSER (' ') REPLACE
DEFINE CHANNEL (TQM2.TCP.CH2) CHLTYPE (SVRCONN) TRPTYPE (TCP) +
CONNAME('5.6.7.8(1450)') +
MCAUSER (' ') REPLACE
DEFINE LISTENER (ITSMMS.LISTENER) TRPTYPE(TCP) CONTROL(QMGR) PORT(1414)
DEFINE LISTENER (ITSMMS.LISTENER) TRPTYPE(TCP) CONTROL(QMGR) PORT(1450)
START LISTENER(ITSMMS.LISTENER)
Basically I want to create two server-connectoin channels and have each of them listening on differnet ip address with different port number.
Are the above mqsc possible?
If not, what is the correct way to define them?
Thanks |
|
Back to top |
|
 |
samsam007 |
Posted: Thu Dec 04, 2008 9:28 pm Post subject: Re: creating two server-connection channels |
|
|
 Centurion
Joined: 30 Oct 2008 Posts: 107
|
samsam007 wrote: |
samsam007 wrote: |
Hi,
I want to create two server-connection channels for the Qmgr running in our production system. A server-connection channel is listening on port 1414, another is listening on port 1450.
currently I am using the following command to start the listener, but it is not specific to any channel
start runmqlsr /t TCP /m QM.ITSMMS /p 1414
the following is the mqsc scripts for creating the channels, queues:
* Channels for Clients
DEFINE CHANNEL (TQM2.TCP.CH) CHLTYPE (SVRCONN) TRPTYPE (TCP) +
MCAUSER (' ') REPLACE
*********************************************
* DEFINE LOCAL (QM.MQT2) "SERVICE" QUEUES *
*********************************************
* Traffic Data System queues
DEFINE QLOCAL ('NY.TD.INPUT') REPLACE +
DESCR ('Traffic Data System input queue') +
DEFPSIST (NO)
DEFINE QLOCAL ('NY.TD.OUTPUT') REPLACE +
DESCR ('Traffic Data System output queue') +
DEFPSIST (NO)
Thanks |
Sorry, I forgot put down my question.
What if I change the listener command to the one with the Define statement like below:
DEFINE CHANNEL (TQM2.TCP.CH1) CHLTYPE (SVRCONN) TRPTYPE (TCP) +
CONNAME('1.2.3.4(1414)') +
MCAUSER (' ') REPLACE
DEFINE CHANNEL (TQM2.TCP.CH2) CHLTYPE (SVRCONN) TRPTYPE (TCP) +
CONNAME('5.6.7.8(1450)') +
MCAUSER (' ') REPLACE
DEFINE LISTENER (ITSMMS.LISTENER) TRPTYPE(TCP) CONTROL(QMGR) PORT(1414)
DEFINE LISTENER (ITSMMS.LISTENER) TRPTYPE(TCP) CONTROL(QMGR) PORT(1450)
START LISTENER(ITSMMS.LISTENER)
Basically I want to create two server-connectoin channels and have each of them listening on differnet ip address with different port number.
Are the above mqsc possible?
If not, what is the correct way to define them?
Thanks |
With v7.0, could the DEFINE LISTENER written in the following way?
DEFINE LISTENER (ITSMMS.LISTENER) TRPTYPE(TCP) CONTROL(QMGR) IPADDR(1.2.3.4) PORT(1414)
DEFINE LISTENER (ITSMMS.LISTENER) TRPTYPE(TCP) CONTROL(QMGR) IPADDR(5.6.7. PORT(1450)
START LISTENER(ITSMMS.LISTENER)
Thanks |
|
Back to top |
|
 |
AkankshA |
Posted: Thu Dec 04, 2008 9:40 pm Post subject: Re: creating two server-connection channels |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
samsam007 wrote: |
DEFINE LISTENER (ITSMMS.LISTENER) TRPTYPE(TCP) CONTROL(QMGR) PORT(1414)
DEFINE LISTENER (ITSMMS.LISTENER) TRPTYPE(TCP) CONTROL(QMGR) PORT(1450)
START LISTENER(ITSMMS.LISTENER)
|
you cant create one listener listening on two different ports...
change the name...
give the specific port in your application with svrconn channel name to connect to that ip... _________________ Cheers |
|
Back to top |
|
 |
samsam007 |
Posted: Thu Dec 04, 2008 10:04 pm Post subject: Re: creating two server-connection channels |
|
|
 Centurion
Joined: 30 Oct 2008 Posts: 107
|
AkankshA wrote: |
samsam007 wrote: |
DEFINE LISTENER (ITSMMS.LISTENER) TRPTYPE(TCP) CONTROL(QMGR) PORT(1414)
DEFINE LISTENER (ITSMMS.LISTENER) TRPTYPE(TCP) CONTROL(QMGR) PORT(1450)
START LISTENER(ITSMMS.LISTENER)
|
you cant create one listener listening on two different ports...
change the name...
give the specific port in your application with svrconn channel name to connect to that ip... |
Is something like this:
DEFINE LISTENER (ITSMMS.LISTENER1) TRPTYPE(TCP) CONTROL(QMGR) PORT(1414)
DEFINE LISTENER (ITSMMS.LISTENER2) TRPTYPE(TCP) CONTROL(QMGR) PORT(1450)
START LISTENER(ITSMMS.LISTENER1)
START LISTENER(ITSMMS.LISTENER2)
Thanks |
|
Back to top |
|
 |
AkankshA |
Posted: Thu Dec 04, 2008 10:16 pm Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
yesss...
seems fine  _________________ Cheers |
|
Back to top |
|
 |
samsam007 |
Posted: Thu Dec 04, 2008 10:29 pm Post subject: |
|
|
 Centurion
Joined: 30 Oct 2008 Posts: 107
|
AkankshA wrote: |
yesss...
seems fine  |
Thanks, it works well.
I also have to execute the setmqaut commands after created all the objects. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Dec 04, 2008 10:53 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
And if you want your qmgrs to be secure you need to make the svrconn channels SSL and set an mcauser on each....
Remember an SSL channel is only as secure as its keystore file... _________________ MQ & Broker admin |
|
Back to top |
|
 |
|