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 » creating two server-connection channels

Post new topic  Reply to topic
 creating two server-connection channels « View previous topic :: View next topic » 
Author Message
samsam007
PostPosted: Thu Dec 04, 2008 8:31 pm    Post subject: creating two server-connection channels Reply with quote

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
View user's profile Send private message
AkankshA
PostPosted: Thu Dec 04, 2008 9:00 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

i could not find any question in your post
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
samsam007
PostPosted: Thu Dec 04, 2008 9:16 pm    Post subject: Re: creating two server-connection channels Reply with quote

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
View user's profile Send private message
samsam007
PostPosted: Thu Dec 04, 2008 9:28 pm    Post subject: Re: creating two server-connection channels Reply with quote

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
View user's profile Send private message
AkankshA
PostPosted: Thu Dec 04, 2008 9:40 pm    Post subject: Re: creating two server-connection channels Reply with quote

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
View user's profile Send private message Visit poster's website
samsam007
PostPosted: Thu Dec 04, 2008 10:04 pm    Post subject: Re: creating two server-connection channels Reply with quote

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
View user's profile Send private message
AkankshA
PostPosted: Thu Dec 04, 2008 10:16 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

yesss...

seems fine
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
samsam007
PostPosted: Thu Dec 04, 2008 10:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 04, 2008 10:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » creating two server-connection channels
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.