|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Defining a custom service for pubsub |
« View previous topic :: View next topic » |
Author |
Message
|
tleichen |
Posted: Tue Mar 18, 2008 12:59 pm Post subject: Defining a custom service for pubsub |
|
|
Yatiri
Joined: 11 Apr 2005 Posts: 663 Location: Center of the USA
|
In version 5.3, you could set the pub/sub broker to start as a custom service using the amqmdain command:
amqmdain cstmig filename
where filename contained something like this:
PubSub Broker, strmqbrk -m QM, endmqbrk -m QM, SUFFIX|QMGR|STARTUP|SHUTDOWN|COMMAND, QM
How in the world do you do this in version 6? They have changed all the parameters and cstmig is no longer an option. The only examples in the system management guide do not give an example of this.  _________________ IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Mar 18, 2008 1:19 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You define the PubSub broker as a Service.
AMQ8427: Valid syntax for the MQSC command:
DEFINE SERVICE(service_name) [ STARTCMD(string) ]
[ STARTARG(string) ] [ STOPCMD(string) ]
[ STOPARG(string) ] [ STDOUT(string) ]
[ STDERR(string) ] [ SERVTYPE( SERVER | COMMAND ) ]
[ DESCR(string) ] [ LIKE(service_name) ]
[ REPLACE | NOREPLACE ]
[ CONTROL( MANUAL | QMGR | STARTONLY ) ] _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
tleichen |
Posted: Wed Mar 19, 2008 6:33 am Post subject: |
|
|
Yatiri
Joined: 11 Apr 2005 Posts: 663 Location: Center of the USA
|
So, this is a totally different way of doing this. I have a few more questions. For the startcmd and stopcmd parameters, is it really necessary to supply a fully qualified path necessary like the book says, or can you just put strmqbrk and endmqbrk, respectively? Also, for the pubsub broker, where would one route stdout and stderr?  _________________ IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Mar 19, 2008 6:44 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Generally I admin MQ by the book. Why not put the full path there? Its a one time effort. I did on mine for what its worth. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
tleichen |
Posted: Wed Mar 19, 2008 12:09 pm Post subject: |
|
|
Yatiri
Joined: 11 Apr 2005 Posts: 663 Location: Center of the USA
|
FYI, the full path does not seem to be necessary. It starts and stops the broker just fine with only the command names and puts the filenames for stderr/stdout under the MQ installation directory... right where you want 'em!  _________________ IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|