|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Export JMS Destinations in "Create Queue" format? |
« View previous topic :: View next topic » |
Author |
Message
|
omhopper |
Posted: Wed Jun 26, 2019 1:08 pm Post subject: Export JMS Destinations in "Create Queue" format? |
|
|
Novice
Joined: 08 Jun 2007 Posts: 17
|
Is there a way to export all the current JMS destinations for my queue manager into a file that could then be used with the JMSAdmin utility?
Sort of like the dmpmqcfg that exports definitions into a format that can be used with runmqsc to redefine all the objects. I'd like to be able to export all the JMS destinations into a file with the output similar to:
DEF Q(queue:\\QMGR1\QUEUE.A) QUEUE(QUEUE.A) TC(MQ) QMGR(QMGR1)
DEF Q(queue:\\QMGR2\QUEUE.B) QUEUE(QUEUE.B) TC(MQ) QMGR(QMGR2)
END _________________ Thanks. |
|
Back to top |
|
 |
hughson |
Posted: Wed Jun 26, 2019 4:40 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
The original versions of what is now dmpmqcfg, were tools that issued DISPLAY commands and got all the parameters back, and then did a search and replace for the keyword "DISPLAY" with the keyword "DEFINE" in order to allow replay. These tools got more sophisticated over time being able to remove things like ALTDATE and ALTTIME from DISPLAY output because those were not valid on DEFINE commands.
I have not tried out the above with JMS Admin, but you could give it a go and see how much tweaking it needs.
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jun 27, 2019 4:45 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
hughson wrote: |
The original versions of what is now dmpmqcfg, were tools that issued DISPLAY commands and got all the parameters back, and then did a search and replace for the keyword "DISPLAY" with the keyword "DEFINE" in order to allow replay. These tools got more sophisticated over time being able to remove things like ALTDATE and ALTTIME from DISPLAY output because those were not valid on DEFINE commands.
I have not tried out the above with JMS Admin, but you could give it a go and see how much tweaking it needs.
Cheers,
Morag |
Excellent advice. I'd look at the output of dis q(*), dis cf(*), qcf(*), xaqcf(*), topid factories etc... Then redirect into a file and edit the file if need be.
Use the file to recreate a context and compare...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
omhopper |
Posted: Thu Jun 27, 2019 10:04 am Post subject: |
|
|
Novice
Joined: 08 Jun 2007 Posts: 17
|
Thank you for the assistance. This is what I've come up with. Pipe the output of the DIS to a file, it ends up looking like this:
Q(QUEUE.A)
CCSID(1208)
DESCRIPTION(This is Queue A)
ENCODING(NATIVE)
EXPIRY(APP)
FAILIFQUIESCE(YES)
MDMSGCTX(DEFAULT)
MDREAD(NO)
MDWRITE(NO) ... and so on.
All I need to do is replace the 'Q(' with 'DEF Q(', then add a Plus sign to the end of each line to get a file I can use to pipe into the JMSAdmin utility. Like so:
DEF Q(QUEUE.A) +
CCSID(1208) +
DESCRIPTION(This is Queue A) +
ENCODING(NATIVE) +
EXPIRY(APP) +
FAILIFQUIESCE(YES) +
MDMSGCTX(DEFAULT) +
MDREAD(NO) +
MDWRITE(NO) + ... and so on until it's the last attribute.
Thanks again. _________________ Thanks. |
|
Back to top |
|
 |
hughson |
Posted: Thu Jun 27, 2019 7:50 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
Glad to hear its a workable output.
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
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
|
|
|
|