protected void processSOAPMessage(Destination destination, InputStream inputStream, OutputStream outStream) throws SOAPException, IOException, RemoteException
{
SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
EndpointRegistry epRegistry = spiProvider.getSPI(EndpointRegistryFactory.class).getEndpointRegistry();
JMSEndpointResolver resolver = spiProvider.getSPI(JMSEndpointResolver.class);
resolver.setDestination(destination);
Endpoint endpoint = epRegistry.resolve(resolver);
if (endpoint == null)
throw new IllegalStateException("Cannot find endpoint for destination: " + destination);