Author |
Message
|
royr |
Posted: Mon Dec 29, 2003 6:32 am Post subject: Adding a custom service using amqmdain |
|
|
 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 |
|
 |
EddieA |
Posted: Mon Dec 29, 2003 9:11 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Mon Dec 29, 2003 10:41 am Post subject: |
|
|
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 |
|
 |
EddieA |
Posted: Mon Dec 29, 2003 1:58 pm Post subject: |
|
|
 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 |
|
 |
JasonE |
Posted: Mon Dec 29, 2003 3:14 pm Post subject: |
|
|
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 |
|
 |
EddieA |
Posted: Mon Dec 29, 2003 4:32 pm Post subject: |
|
|
 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 |
|
 |
royr |
Posted: Tue Dec 30, 2003 9:15 am Post subject: |
|
|
 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 |
|
 |
JasonE |
Posted: Tue Dec 30, 2003 9:52 am Post subject: |
|
|
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 |
|
 |
|