Author |
Message
|
meetgaurav |
Posted: Sun Nov 09, 2008 8:14 pm Post subject: Creating MQ QUEUES |
|
|
Voyager
Joined: 08 Sep 2008 Posts: 94
|
Am just creating the Queues and Q mgr here.. Any parameter were missing here ?? or For performance tuning whether I need configure anything else??...Please assit me, am going to submit the code to client..I need to confirm these things
crtmqm JAVA.SATYAM
strmqm JAVA.SATYAM
runmqsc JAVA.SATYAM
DEFINE QLOCAL(SATYAM.QUEUE.A)
DEFINE QLOCAL(SATYAM.QUEUE.B)
DEFINE QLOCAL(SATYAM.QUEUE.C)
DEFINE CHANNEL(CHANNEL1) CHLTYPE(SVRCONN)
end
what is the use of => runmqlsr -m JAVA.SATYAM-t tcp -p 8888 |
|
Back to top |
|
 |
atheek |
Posted: Sun Nov 09, 2008 9:22 pm Post subject: |
|
|
 Partisan
Joined: 01 Jun 2006 Posts: 327 Location: Sydney
|
Looks like your app needs to read or send messages only to local queues and you dont need to trigger your app. If so these should be fine.
For better security configure mcauser for your channel definition.
mcauser wrote: |
what is the use of => runmqlsr -m JAVA.SATYAM-t tcp -p 8888 |
runmqlsr is the listener for your queue manager. If you need your app to connect to the qmgr using the channel you defined, you should ensure that the listener is running and the app is configured correctly to point to that port. For MQ v6x or above its better to define listener as qmgr objects ( see for runmqsc/Define Listener) rather than run it separately using runmqlsr |
|
Back to top |
|
 |
meetgaurav |
Posted: Sun Nov 09, 2008 11:04 pm Post subject: |
|
|
Voyager
Joined: 08 Sep 2008 Posts: 94
|
HI atheek,
Thanks for the reply. I just read few documents and created the Queues and liestener. could you please review this one.
crtmqm MQSI60_SAMPLEQM
strmqm MQSI60_SAMPLEQM
runmqsc MQSI60_SAMPLEQM
"DEFINE LISTENER(MQSI60.LISTENER) TRPTYPE(TCP) PORT(1885) CONTROL(QMGR)"
"START LISTENER(MQSI60.LISTENER)"
"DEFINE QLOCAL(QUEUE_A)"
"DEFINE QLOCAL(QUEUE_B)"
"DEFINE CHANNEL(CHANNEL1) CHLTYPE(SVRCONN)"
end
what is the difference B/W
runmqlsr -m JAVA.SATYAM-t tcp -p 8888
and
DEFINE LISTENER(MQSI60.LISTENER) TRPTYPE(TCP) PORT(1885) CONTROL(QMGR)"
"START LISTENER(MQSI60.LISTENER)"
Please assist me..
Whether the MQSI60.LISTENER is a constant rite ??
Thanks |
|
Back to top |
|
 |
atheek |
Posted: Mon Nov 10, 2008 1:19 am Post subject: |
|
|
 Partisan
Joined: 01 Jun 2006 Posts: 327 Location: Sydney
|
With runmqlsr you need to explictly start the listener by typing the command..With a listener object with control(QMGR), the listener is totally under qmgr control and qmgr starts/stops the listener when it starts/stops..
As I said before, its better to set MCAUSER for the channel. It provides a way to authorise access to the qmgr using that channel.
Last edited by atheek on Mon Nov 10, 2008 1:22 am; edited 1 time in total |
|
Back to top |
|
 |
atheek |
Posted: Mon Nov 10, 2008 1:20 am Post subject: |
|
|
 Partisan
Joined: 01 Jun 2006 Posts: 327 Location: Sydney
|
meetgaurav wrote: |
Whether the MQSI60.LISTENER is a constant rite ?? |
No..You can give any name for a listener |
|
Back to top |
|
 |
meetgaurav |
Posted: Mon Nov 10, 2008 1:29 am Post subject: |
|
|
Voyager
Joined: 08 Sep 2008 Posts: 94
|
Got it, Many Thanks to Atheek.... |
|
Back to top |
|
 |
|