Author |
Message
|
scravr |
Posted: Wed Aug 11, 2010 3:16 pm Post subject: rename cmf in BAR |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
In order to deploy a flow multiple times on a single execution group (with different promoted properties):
Does anyone knows a way to rename the cmf file, while runing mqsiapplybaroverride or mqsideploy command line?
Any suggestions on how to deploy a flow multiple times to same exec group? |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 11, 2010 5:32 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
neither of these commands support changing the cmf name or modifying any part of the bar file other than the configurable properties.
A bar file is just a zip file. |
|
Back to top |
|
 |
scravr |
Posted: Thu Aug 12, 2010 5:56 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
1. Any ideas how to automate rename of cmf file? (Not a manual change on toolkit).
2. How to run same flow more than once on same exec group?
3. Why exec group runs the name of a flow instead of by name of the created BAR name? |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 12, 2010 6:06 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
scravr wrote: |
1. Any ideas how to automate rename of cmf file? (Not a manual change on toolkit). |
As stated a bar file is just a zip file. So you can change it any way you like. But IBM does not AFAIK support any bar file that's been modified by any non-IBM provided method.
scravr wrote: |
2. How to run same flow more than once on same exec group? |
You can't. You can run more instances of the same flow, which works in most situations.
scravr wrote: |
3. Why exec group runs the name of a flow instead of by name of the created BAR name? |
Because the flow is the component that runs. The bar file name is arbitrary and has no connection to the flow (or flows) it runs. Each bar file can contain 1-n flows and I personally like the fact I can stop or start them individually while still having a single bar file that's everything I need to deploy to an environment. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
scravr |
Posted: Thu Aug 12, 2010 6:13 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
Well, sometimes (like mine) there is a need to run same flow (with diff properties) more than once on a single exec goup.
On toolkit I can change the cmf name and redeploy.
Why there is no same capability on command line? |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 12, 2010 6:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
scravr wrote: |
Well, sometimes (like mine) there is a need to run same flow (with diff properties) more than once on a single exec goup. |
I did say most situations.
scravr wrote: |
On toolkit I can change the cmf name and redeploy.
|
How? I can't find that option on mine.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
scravr |
Posted: Thu Aug 12, 2010 6:40 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
See infocenter af03885
or
Open the BAR Manage's tab, right click and EDIT cmf name. Then deploy to same Exec Group. The look at the EG; you will see the new name.
Do not BUILD the bar; it restores the cmf name !!!! (unless you like to restore; in your case you should) |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 12, 2010 6:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
scravr wrote: |
See infocenter af03885 |
Again my signature is vindicated!
(Mind you, 10 years doing this & I've managed without this knowledge so far...!)
In which case the answer to your question:
scravr wrote: |
Why there is no same capability on command line? |
is "because no one in IBM thought of it".
Time for an enhancement request. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
inMo |
Posted: Thu Aug 12, 2010 7:31 am Post subject: |
|
|
 Master
Joined: 27 Jun 2009 Posts: 216 Location: NY
|
Are you refering to the part about the sharpened trout? |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 12, 2010 8:23 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
inMo wrote: |
Are you refering to the part about the sharpened trout? |
All of it. Including that part.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
dominik.schweers |
Posted: Tue Aug 24, 2010 1:31 am Post subject: |
|
|
Novice
Joined: 23 Oct 2008 Posts: 17
|
Hi all!
We have the same problem over here! I have found no way to rename a flow automatically during build.
My colleague found a very nice way to do what we want:
We have a flow called FlowX. This flow should be deployed to one Execution Group several times with different settings. We have created flows
FlowX_customer1
FlowX_customer2
FlowX_customer3...
Each customer flow simply embeds the FlowX, in other words FlowX is inserted as a subflow in each customer flow. The customer flows can be deployed with different settings and we do not have to duplicate stuff.
You can start to bash this idea now!
 |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Aug 24, 2010 7:59 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Vitor wrote: |
scravr wrote: |
On toolkit I can change the cmf name and redeploy.
|
How? I can't find that option on mine.  |
Vitor, Are you running V7?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Vitor |
Posted: Tue Aug 24, 2010 8:22 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
fjb_saper wrote: |
Vitor, Are you running V7?  |
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Aug 24, 2010 8:38 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Vitor wrote: |
fjb_saper wrote: |
Vitor, Are you running V7?  |
 |
I've seen this kind of renaming being done in the V7 toolkit...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 24, 2010 9:19 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
fjb_saper wrote: |
Vitor wrote: |
fjb_saper wrote: |
Vitor, Are you running V7?  |
 |
I've seen this kind of renaming being done in the V7 toolkit...  |
In Toolkit 6.1.0.7, I can right click on the cmf file in the BAR file editor and "Edit". Then I can "Enter a new entry name".
This doesn't appear to be possible in 6.0.0.x Toolkit |
|
Back to top |
|
 |
|