ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » a way to set "additionalInstances" on message flow

Post new topic  Reply to topic
 a way to set "additionalInstances" on message flow « View previous topic :: View next topic » 
Author Message
covxr5
PostPosted: Mon Apr 10, 2006 2:26 pm    Post subject: a way to set "additionalInstances" on message flow Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Mon Apr 10, 2006 3:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
mqmatt
PostPosted: Tue Apr 11, 2006 2:54 am    Post subject: Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Tue Apr 11, 2006 3:58 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
mqmatt
PostPosted: Tue Apr 11, 2006 4:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » a way to set "additionalInstances" on message flow
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.