Author |
Message
|
jlee |
Posted: Wed May 09, 2007 2:06 am Post subject: Multiple instances of a flow in a BAR file |
|
|
Newbie
Joined: 03 May 2007 Posts: 7 Location: Auckland, NZ
|
Hi,
From what I have read, in order to implement multiple instances of a message flow in a BAR file you simply add the flow, rename the .cmf file. and then add the flow again - where it will be added again under the original name.cmf.
This is not working for me for some reason, and I was wondering if I was doing something drastically wrong i.e. do I have to set some other parameter somewhere else? After I have renamed it, and then added it again - I get a successful message stating that it has added it successfully (as its original name) but it does not appear in the BAR file.
I'm using Toolkit 6.0.2 if that helps.
Help would be appreciated!
Cheers
Jeremy |
|
Back to top |
|
 |
AkankshA |
Posted: Wed May 09, 2007 2:17 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
I would prefer increasing the Additional instances in bar file for that flow instead of renaming etc etc etc... _________________ Cheers |
|
Back to top |
|
 |
Monk |
Posted: Wed May 09, 2007 2:27 am Post subject: |
|
|
 Master
Joined: 21 Apr 2007 Posts: 282
|
May I ask, where exactly did you read this about? ,adding additional instances this way.. _________________ Thimk |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed May 09, 2007 5:11 am Post subject: Multiple Instances |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
There are two ways commonly used to get multiple instances of a message flow.
These are:-
1) Update the .BAR file and set the additional instances property
2) Deploy multiple copies of the same message flow to different execution groups.
You can check how many instances you have configured via WMQ Explorer and cound the number of connections on the queue from a process called DataFlowEngine.
There could be other methods/hacks to multiple instances of a flow but these work.
Both of the above have thier own pros & Cons.
The latter method is an easy way to dynamically add throughput for a flow but remember to update ALL copies of the flow when changes are made.
/S _________________ 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 |
|
 |
jlee |
Posted: Wed May 09, 2007 1:16 pm Post subject: |
|
|
Newbie
Joined: 03 May 2007 Posts: 7 Location: Auckland, NZ
|
I found the information in Message Broker Help:
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.eb.doc/af03885_.htm
Quote: |
To deploy multiple instances of the flow with different values for the configurable properties:
1. Rename the message flow file (.cmf) in the bar editor.
2. Add the message flow to the bar file again. It is added to the bar file with the original name.
3. Click the Configure tab. You can now edit the configurable properties for both message flows
|
I am unsure as to whether setting additional instances will work for me here, since I need to set a couple of user defined properties to be different for each instance.
Cheers
Jeremy |
|
Back to top |
|
 |
jlee |
Posted: Wed May 16, 2007 6:41 pm Post subject: |
|
|
Newbie
Joined: 03 May 2007 Posts: 7 Location: Auckland, NZ
|
Has anyone used this approach before? I am very interested in knowing if it is working for you, since for some reason mine still does not.
Cheers,
Jeremy |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Wed May 16, 2007 10:23 pm Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
jlee wrote: |
Has anyone used this approach before? I am very interested in knowing if it is working for you, since for some reason mine still does not.
Cheers,
Jeremy |
You mentioned that it doesn't work without additional information.
Can you describe it ?
What doesn't work in this scenarion ?
Maybe there is problem in totally different place ? _________________ Marcin |
|
Back to top |
|
 |
jlee |
Posted: Thu May 17, 2007 12:41 am Post subject: |
|
|
Newbie
Joined: 03 May 2007 Posts: 7 Location: Auckland, NZ
|
Hi,
This is what is happening for me:
After I have renamed the .cmf, I then add it again into the BAR file (supposedly as the original name) - I get a successful message stating that it has added it successfully (as its original name) but it does not appear in the BAR file.
Cheers |
|
Back to top |
|
 |
n1ghtrain |
Posted: Thu May 17, 2007 1:32 am Post subject: |
|
|
 Apprentice
Joined: 23 Mar 2006 Posts: 48 Location: Bangalore
|
Quote: |
After I have renamed the .cmf, I then add it again into the BAR file |
Tried it out.. Its working for me
First i added the flow, renamed the cmf, saved the bar file
Added the flow again.
I could configure both and deploy them succesfully |
|
Back to top |
|
 |
kishoreraju |
Posted: Thu May 17, 2007 12:54 pm Post subject: |
|
|
Disciple
Joined: 30 Sep 2004 Posts: 156
|
Have you deployed both bar files into same excution group or differnet execution group. if you deployed both onto one execution group then you will have one instance running . t ofind how many instances running go to your MQ Explorer and right click on the input queue of that flow and select status in menu it will show you how many instances listening on that queue. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Thu May 17, 2007 1:02 pm Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
kishoreraju wrote: |
Have you deployed both bar files into same excution group or differnet execution group. if you deployed both onto one execution group then you will have one instance running . t ofind how many instances running go to your MQ Explorer and right click on the input queue of that flow and select status in menu it will show you how many instances listening on that queue. |
It is not problem with deployment but with adding flows into bar file. _________________ Marcin |
|
Back to top |
|
 |
|