* Start all the endpoints specified in jbi.xml. In case of consumer just
* the state variable is set to started. For providers all the endpoints are
* activated in NMR.
*/
void startAllEndpoints(String su_Name) throws Exception {
EndpointHelper epHelper = EndpointHelper.getInstance();
for (DescriptorEndpointInfo ep : registryManager.getAllConsumerEP(su_Name))
ep.setStarted(true);
for (DescriptorEndpointInfo ep : registryManager.getAllProviderEP(su_Name)) {
if(registryManager.getSEEndpoint(ep)==null) {
WebServiceEndpoint endpoint = registryManager.getWSEndpoint(ep, su_Name);
if(endpoint == null)
throw new Exception(
translator.getString("serviceengine.endpoint_mismatch",
ep.getServiceName().getLocalPart(),
su_Name));
createEndpoint(endpoint, ep);
}
if (ep.isPrivate()) {
WebServiceEndpoint endpoint =
registryManager.getSEEndpoint(ep).getEndpointDesc();
endpoint.setJBIPrivate(true);
}
ep.setStarted(true);
// now activate the endpoint in NMR
epHelper.enableEndpoint(ep.getServiceName(), ep.getEndpointName());
}
}