I don't think you can have multiple instances of the same capability within the same resource instance. I believe the reason for this is routing - at the end everything goes into one WSDL and all operations are smashed into a single WSDL. Using the EPR, the resource router can send a request to the right resource implementation class and the resource implementation can then delegate to the specific capability class based on the action URI or method name. Having multiple capability instances would not fit in this model.
In the past we have just defined these are multiple resources. For example, when modeling an operating system, I have modeled processes are first class resource elements. All the processes have the same capability (ProcessInfoProvider) and hence I define only one resource type (Process) with this capability (+ some standard WSDM capabilities). Using afactory I create these process resource instances at runtime when I have queried the operating system. Balan Subramanian Autonomic Computing, IBM, RTP, NC 919.543.0197 | [EMAIL PROTECTED] Keith Rochford <[EMAIL PROTECTED]> 07/23/2007 09:25 AM Please respond to [email protected] To [email protected] cc Subject Multiple Capabilities of the same type? Hi All, I'm having trouble figuring out the best approach to this problem. I'm still new to this so apologies if it doesn't make sense! Consider a resource such as a server, in addition to performance metrics etc, it might have several services which we want to monitor and manage. In order to keep things tidy I was thinking that the best way to do this might be to define a ServiceManagement Capability (with properties such as service name, status, and operations such as start/stop) and create one of these for each of the managed services. Is it possible to do this with MUSE? to have multiple capabilities of the same type in a single management endpoint? It doesn't seem to make sense to define a specific capability for each service. Is there a better (or more WSDM-friendly) approach to achieve this? Should I try to use a factory object to create each of these ServiceManagement Capabilities from within the code, along with a specific EPR? I feel I'm missing something here. Any advice is very much appreciated & thanks for all the hard work so far! Kind regards Keith --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
