// Add code here to process the received message.
MessageExchange me = getMessageExchange();
String endpoint = me.getEndpoint().getEndpointName();
QName service = me.getEndpoint().getServiceName();
SOAPMessage response = null;
MessageExchangeHelper meHelper = new MessageExchangeHelper();
meHelper.setMessageExchange(me);
try {
debug(Level.FINEST,"serviceengine.process_incoming_request",
new Object[]{service.getLocalPart(), endpoint});
EjbRuntimeEndpointInfo runtimeEndpointInfo =
(EjbRuntimeEndpointInfo)RuntimeEndpointInfoRegistryImpl.getInstance().
getRuntimeEndpointInfo(service, endpoint);
response = processEJBRequest(
meHelper.denormalizeMessage(true), runtimeEndpointInfo);
} catch(Throwable e) {
logger.log(Level.SEVERE, "serviceengine.error_incoming_request", e);
ServiceEngineException seException = new ServiceEngineException(e);
meHelper.handleException(seException);
}
meHelper.handleResponse(response, false);
} catch(Exception e) {
logger.log(Level.SEVERE, "JavaEEServiceEngine : Error processing request" + e , e);
}
}