Hello, I have the response to my question. in the file router-entries/mycapability/resource-instance-1.xml only I add the resourceId.
<muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">museResource-1</muse-wsa:ResourceId> and I did the same in each resource (I write different resourceId for each one). Thanks you Rafael escribió: > hello everyone > > I have a problem with ServiceGroupEntry. > > I have 2 resources. > > resource1 = http://localhost:9020/mycapability/services/mycapability > resource2 = http://localhost:9030/mycapability/services/mycapability > > when I use "add method" from resource1: > > URI address = > URI.create("http://localhost:8080/wsnProducer/services/ServiceGroup"); > EndpointReference epr = new EndpointReference(address); > ServiceGroupClient sg = new ServiceGroupClient(epr); > sg.add(resource.getEndpointReference(), null); > > from the other size (servicegroup), I ask for the members of the group: > > WsResourceClient[] members = sg.getMembers(); > System.out.println("Addresses of each service group entry:\n"); > for (int n = 0; n < members.length; ++n) > System.out.println(members[n].getEndpointReference().getAddress()); > > the response: > Addresses of each service group entry: > http://localhost:9020/mycapability/service/mycapability > > but, when add a new resource (resource2, using the same code of the > first resource, only I change the wsdl) > > the response of the serviceGroup is: > > Addresses of each service group entry: > http://localhost:9030/mycapability/service/mycapability > > I read the log file of the servicegroup resource and I found that each > time that a new resource is added to the group: > > > 22/01/2008 11:43:32 AM org.apache.muse.core.SimpleResource > initializeCapabilities > FINA: [ID = 'CapabilityInitialized'] The resource at 'ServiceGroupEntry' > has started initialization of capability > 'http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata'. > 22/01/2008 11:43:32 AM org.apache.muse.core.SimpleResource > initializeCapabilities > FINA: [ID = 'CapabilityInitialized'] The resource at 'ServiceGroupEntry' > has started initialization of capability > 'http://docs.oasis-open.org/wsrf/rpw-2/Get'. > 22/01/2008 11:43:32 AM org.apache.muse.core.SimpleResource > initializeCapabilities > FINA: [ID = 'CapabilityInitialized'] The resource at 'ServiceGroupEntry' > has started initialization of capability > 'http://docs.oasis-open.org/wsrf/sgw-2/ServiceGroupEntry'. > 22/01/2008 11:43:32 AM org.apache.muse.core.SimpleResource > initializeCapabilities > FINA: [ID = 'CapabilityInitializationComplete'] The resource at > 'ServiceGroupEntry' has completed initialization of capability > 'http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata. > 22/01/2008 11:43:32 AM org.apache.muse.core.SimpleResource > initializeCapabilities > FINA: [ID = 'CapabilityInitializationComplete'] The resource at > 'ServiceGroupEntry' has completed initialization of capability > 'http://docs.oasis-open.org/wsrf/rpw-2/Get. > 22/01/2008 11:43:32 AM org.apache.muse.core.SimpleResource > initializeCapabilities > FINA: [ID = 'CapabilityInitializationComplete'] The resource at > 'ServiceGroupEntry' has completed initialization of capability > 'http://docs.oasis-open.org/wsrf/sgw-2/ServiceGroupEntry. > 22/01/2008 11:43:32 AM org.apache.muse.core.SimpleResource initialize > INFO: [ID = 'ResourceInitialized'] The resource at 'ServiceGroupEntry' > has been initialized. > > > What am I doing bad ? is a bug ? > > > Thank you very much. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
