Author |
Message
|
csmith28 |
Posted: Fri Aug 18, 2006 9:49 am Post subject: strmqmbrk alternative..... |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
I know I can start the pub/sub broker with the strmqmbrk command but I also recall there being a attribute of an object defined in the MQManager that can be changed that will start the broker automatically when strmqm is issued.
For the life of me I can't remember what it is. Halp plx. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
vennela |
Posted: Fri Aug 18, 2006 9:57 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
I know there is one for command server
The SCMDSERV attribute on QMGR. But for broker I am not sure |
|
Back to top |
|
 |
jeevan |
Posted: Fri Aug 18, 2006 10:05 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
Which version of MQ? Which platform? I think you can do that in mq for Windows adding the strmqmbrk command in reference command file
Quote: |
On WebSphere MQ for Windows(R), the strmqbrk command can be added to the reference command file used when starting a queue manager automatically.
|
I do not know anhy other way. Guru can do. |
|
Back to top |
|
 |
csmith28 |
Posted: Fri Aug 18, 2006 10:20 am Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
AIX5.2 ml8
WMQ6.0.1.0 _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
vennela |
Posted: Fri Aug 18, 2006 10:23 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
You can add a service object and make the service control as QMGR |
|
Back to top |
|
 |
csmith28 |
Posted: Fri Aug 18, 2006 10:54 am Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
vennela wrote: |
You can add a service object and make the service control as QMGR |
Is this how to do it?
echo "alter qmgr SCMDSERV(QMGR)" | runmqsc _________________ Yes, I am an agent of Satan but my duties are largely ceremonial.
Last edited by csmith28 on Fri Aug 18, 2006 11:00 am; edited 1 time in total |
|
Back to top |
|
 |
vennela |
Posted: Fri Aug 18, 2006 11:00 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
This is what I have on my Windows box.
Hope this helps.
Code: |
dis SERVICE(SYSTEM.BROKER) all
10 : dis SERVICE(SYSTEM.BROKER) all
AMQ8629: Display service information details.
SERVICE(SYSTEM.BROKER) CONTROL(MANUAL)
SERVTYPE(SERVER)
STARTCMD(C:\Program Files\IBM\WebSphere MQ\bin\runmqbrk)
STARTARG(-m QM1)
STOPCMD(C:\Program Files\IBM\WebSphere MQ\bin\endmqbrk)
STOPARG(-m QM1) STDOUT( )
STDERR( ) DESCR(Publish/Subscribe)
ALTDATE(2006-06-30) ALTTIME(16.42.11) |
|
|
Back to top |
|
 |
vennela |
Posted: Fri Aug 18, 2006 11:02 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
csmith28 wrote: |
vennela wrote: |
You can add a service object and make the service control as QMGR |
Is this how to do it?
echo "alter qmgr SCMDSERV(QMGR)" | runmqsc |
Yes, but that is for command server and not pub sub broker.
For the broker, see my post above |
|
Back to top |
|
 |
wschutz |
Posted: Fri Aug 18, 2006 11:14 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
ven, he probably wants "control(qmgr)" to automatically start with strmqm.....
oh...and you can use this syntax:
so you don't need to hard code the qmgr name in the command
and this:
Code: |
'+MQ_INSTALL_PATH+/bin/runmqbrk |
so you don't need the install path either .... _________________ -wayne |
|
Back to top |
|
 |
csmith28 |
Posted: Fri Aug 18, 2006 11:37 am Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
# echo "alter service(SYSTEM.BROKER) CONTROL(QMGR)" | runmqsc
That's it. Thanks.
Code: |
1 : dis SERVICE(SYSTEM.BROKER)
AMQ8629: Display service information details.
SERVICE(SYSTEM.BROKER) CONTROL(QMGR)
SERVTYPE(SERVER) STARTCM(/usr/mqm/bin/runmqbrk)
STARTARG(-m QM01) STOPCMD(/usr/mqm/bin/endmqbrk)
STOPARG(-m QM01) STDOUT( )
STDERR( ) DESCR(Publish/Subscribe)
ALTDATE(2006-05-02) ALTTIME(12.12.27) |
_________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
|