|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
a way to set "additionalInstances" on message flow |
« View previous topic :: View next topic » |
Author |
Message
|
covxr5 |
Posted: Mon Apr 10, 2006 2:26 pm Post subject: a way to set "additionalInstances" on message flow |
|
|
Novice
Joined: 10 Apr 2006 Posts: 10
|
Hello, I am trying to figure out a way to set "additionalInstances" on message flow but I couldn't get it working using CMP. There is a method to get additional instances "getAdditionalInstances" but there isn't any to set it. The documentation says whatever that we can do with toolkit is doable with CMP.
Has anyone tried to set additional instances on the message flow? I would appreciate if anyone throws some ideas on how to do it. I tried with AdministerdObject(MessageFlowProxy).setProperties(AttributeConstants.MESSAGEFLOW_ADDITIONAL_INSTANCES, "5') unsuccessfully. Thanks. |
|
Back to top |
|
 |
wschutz |
Posted: Mon Apr 10, 2006 3:49 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
The documentation says whatever that we can do with toolkit is doable with CMP. |
Does it really say that? The only "things" you can do with CMP are those that you can also do in the toolkit that have to do directly with the configmgr. For exampe, you can't edit a message flow with the CMP. And since "Additional Instances" is an attribute of the BAR file, you an't do that either.
Do you have a link to the place in the doc where it says this? _________________ -wayne |
|
Back to top |
|
 |
mqmatt |
Posted: Tue Apr 11, 2006 2:54 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
You can only set additional instances at deploy time, inside the BAR file;
you cannot set this value on an existing message flow without redeployment.
If you use the CMP to try and set the additional instances property, the request will not be propagated to the broker.
-Matt |
|
Back to top |
|
 |
wschutz |
Posted: Tue Apr 11, 2006 3:58 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
If you use the CMP to try and set the additional instances property, the request will not be propagated to the broker. |
Matt---which CMP class allows you to do that? _________________ -wayne |
|
Back to top |
|
 |
mqmatt |
Posted: Tue Apr 11, 2006 4:10 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
Hi Wayne,
There is no specific CMP method to set additional instances; the MessageFlowProxy class has a method for getting the value (getAdditionalInstances()) but not an equivalent setter.
However, as covxr5 mentions above, you can use AdministeredObject.setProperties() to attempt to set pretty much anything held within the Proxy's properties tables. But not all of these properties - such as additional instances - are settable.
I'd recommend not using the setProperties() method, because the CMP provides setters for each property you can actually modify; these setters are a lot easier to use and provide proper type checking for the values you supply.
-Matt |
|
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
|
|
|
|