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 » IBM MQ Installation/Configuration Support » Adding a custom service using amqmdain

Post new topic  Reply to topic
 Adding a custom service using amqmdain « View previous topic :: View next topic » 
Author Message
royr
PostPosted: Mon Dec 29, 2003 6:32 am    Post subject: Adding a custom service using amqmdain Reply with quote

Acolyte

Joined: 30 Jun 2001
Posts: 65
Location: Israel

Hi,

I need to configure a custom service (namely a Pub/Sub broker) under a certain queue manager, so that the service will start only after the queue manager starts. The amqmdain command stores a custom service under the "IBM WebSphere MQ Services" folder, which makes it start when all the configured queue managers have started.

Can I make amqmdain store a service under a queue manager folder?

My guess is that it can somehow be done using the "flags" parameter, but I couldn't find any documentation about it.

Ideas, anyone?

(MQ5.3/CSD04/Win2k)

-Roy.
Back to top
View user's profile Send private message
EddieA
PostPosted: Mon Dec 29, 2003 9:11 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

There is a Custom Services folder under each Queue Manager as well as the 'Global' one. Put the Pub/Sub commands there.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Dec 29, 2003 10:41 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

EddieA wrote:
There is a Custom Services folder under each Queue Manager as well as the 'Global' one. Put the Pub/Sub commands there.


I read his question as "How do I use amqmdain to put the Pub/Sub commands under the Custom Services folder under a particular Queue Manager".

And the answer does seem to lie in the Flags field of the custom services file that's passed to the cstmig option. But what those flags are and what they do does not appear to be documented, at least not in the System Administration manual.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
EddieA
PostPosted: Mon Dec 29, 2003 1:58 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Duhh. Can't even blame the New Year hangover can I.

I'm going to take a guess that it can't be done, at present , because there's no way to specify a Queue Manager name in the configuration file. So, even if someone works out the flags, it may not help.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
JasonE
PostPosted: Mon Dec 29, 2003 3:14 pm    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

"amqmdain cstmig <filename>" where filename contains:
Quote:
PubSub Broker, strmqbrk -m QM, endmqbrk -i -m QM, SUFFIX|QMGR|STARTUP|SHUTDOWN|COMMAND, QM


The 'SUFFIX' means after qmgr start
The 'QMGR' means a qmgr custom service rather than a global one

Note running this commands deletes ALL existing custom services and replaces them with the contents of this file - by desgin (no comments on the desgin please...!).
Back to top
View user's profile Send private message
EddieA
PostPosted: Mon Dec 29, 2003 4:32 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Ah ha. Looks like the magic piece QMGR and the "Reserved" flag. I'm guessing "1" means Global, or else it's a Queue Manager name. Tied to QMGR, of course.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
royr
PostPosted: Tue Dec 30, 2003 9:15 am    Post subject: Reply with quote

Acolyte

Joined: 30 Jun 2001
Posts: 65
Location: Israel

Thanks Jason, you're the man!

Can we hope for a documentation update too?

-Roy.
Back to top
View user's profile Send private message
JasonE
PostPosted: Tue Dec 30, 2003 9:52 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

You can hope! Actually I thought some of this was documented, but I dont have any manuals to hand so cant check, I was just quoting something I had writen before!

You know you can always submit readers comment forms (electronically) to get manual changes done too
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 » IBM MQ Installation/Configuration Support » Adding a custom service using amqmdain
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.