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 Discussion » Defining a custom service for pubsub

Post new topic  Reply to topic
 Defining a custom service for pubsub « View previous topic :: View next topic » 
Author Message
tleichen
PostPosted: Tue Mar 18, 2008 12:59 pm    Post subject: Defining a custom service for pubsub Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Mar 18, 2008 1:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
tleichen
PostPosted: Wed Mar 19, 2008 6:33 am    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Wed Mar 19, 2008 6:44 am    Post subject: Reply with quote

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
View user's profile Send private message
tleichen
PostPosted: Wed Mar 19, 2008 12:09 pm    Post subject: Reply with quote

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

MQSeries.net Forum Index » General Discussion » Defining a custom service for pubsub
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.