Author |
Message
|
paustin_ours |
Posted: Mon Jun 30, 2014 1:09 pm Post subject: message flow name change |
|
|
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
|
I have a bar file. I want to override this bar file with a property file and also change the flow name when it gets deployed. Is it possible? The name of the flow is the parent tag in the broker.xml file |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jun 30, 2014 1:12 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You can alter the contents of a bar file, manually, and thus alter the name of the deployed resource.
It is not quite as simple as editing the broker.xml file. And it's more complicated when the bar file contains applications and libraries. |
|
Back to top |
|
 |
paustin_ours |
Posted: Mon Jun 30, 2014 1:19 pm Post subject: |
|
|
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
|
trying to do this programatically. I am able to change the queue name, DSN etc but i need to change the flow name as welll from the property file.
i am getting ready to try it soon. will update. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jun 30, 2014 1:32 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You can do it programattically. By writing a program to edit the contents of the bar file.
You probably have to change more than just the items in the broker.xml. |
|
Back to top |
|
 |
paustin_ours |
Posted: Mon Jun 30, 2014 1:46 pm Post subject: |
|
|
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
|
It cannot be done with just the mqsiapplybaroverride?
I was hoping to pass flowname as a property |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jun 30, 2014 2:14 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
paustin_ours wrote: |
It cannot be done with just the mqsiapplybaroverride?
I was hoping to pass flowname as a property |
Does the documentation for mqsiapplybaroverride say that you can rename a message flow, or any other resource within the bar file? |
|
Back to top |
|
 |
Esa |
Posted: Wed Jul 02, 2014 2:51 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
You can use CMP java API to change a flow's name in runtime. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jul 02, 2014 5:31 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Esa wrote: |
You can use CMP java API to change a flow's name in runtime. |
Which doesn't help if you need to deploy something without overwriting an existing flow with the same name. |
|
Back to top |
|
 |
Esa |
Posted: Wed Jul 02, 2014 5:41 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
No, but it helps if you need to change the flow name as a part of the deployment process, for example add a release number. |
|
Back to top |
|
 |
|