Author |
Message
|
smdavies99 |
Posted: Tue May 15, 2012 10:47 pm Post subject: import of a .configurableservice from the command line |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Apart from writing some java that uses CMP API, it seems that this is not possible.
Am I wrong? If so how can you do it?
(Broker 7.0.0.3) _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Esa |
Posted: Tue May 15, 2012 10:53 pm Post subject: |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
Why should you do it?
You create and change configurable services with mqsicreateconfigurableservice and mqsichangeproperties commands. If you wrap the commands in a script, you can use the script for importing the configurations to other environments.
If you don't have the scripts, I think there is a name for that.
I have not taken a look at a .configurableservice file, but if it's XML you can create an XSL that transforms it to mqsicreateconfigurableservice... |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue May 15, 2012 11:47 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Esa wrote: |
I have not taken a look at a .configurableservice file, but if it's XML you can create an XSL that transforms it to mqsicreateconfigurableservice... |
That rather defeats the purpose of the export IMHO. now if the export could create it directly in command format then I'd be happy.
You can create/edit the configurable services using MBX. It gives you the ability to export/import them so IMHO, the next step is to be able to use the exported definitions in a broker provisioning script. Some types of configurable service (EG SAP) are rather a PITA to get right.
Just trying to keep things simple. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed May 16, 2012 2:46 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
smdavies99 wrote: |
You can create/edit the configurable services using MBX. It gives you the ability to export/import them so IMHO, the next step is to be able to use the exported definitions in a broker provisioning script. Some types of configurable service (EG SAP) are rather a PITA to get right.
Just trying to keep things simple. |
So what you want is a GUI way of generating a command line script.
That is, you want MBX to export a configurable service as an mqsicreateconfigurableservice command string. |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed May 16, 2012 3:04 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
[quote="mqjeff"]
smdavies99 wrote: |
That is, you want MBX to export a configurable service as an mqsicreateconfigurableservice command string. |
OR
A way for the mqsicreateconfiguableservice to accept a .configurableservice file as input
That would be my preferred solution. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed May 16, 2012 3:21 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
It is just an xml file, and the attributes of each configurableservice element are directly named after the -n values, so it shouldn't be terribly hard to write something dumb in ant or etc. that would just read the file and output the relevant mqsicreateconfigurableservice command. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed May 16, 2012 9:20 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
mqjeff wrote: |
It is just an xml file, and the attributes of each configurableservice element are directly named after the -n values, so it shouldn't be terribly hard to write something dumb in ant or etc. that would just read the file and output the relevant mqsicreateconfigurableservice command. |
And if you don't want to handle the xml you can always write a (utility) flow to do that work...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|