return null;
}
@Override
public String processCall(String payload) throws SerializationException {
RemoteService remoteService = null;
RPCRequest rpcRequest = null;
try {
remoteService = (RemoteService) applicationContext.getBean(remoteServiceName);
setServiceData(remoteService, false);
rpcRequest = RPC.decodeRequest(payload, remoteService.getClass(), this);
if (logger.isDebugEnabled()) {
logger.debug("Executing method " + rpcRequest.getMethod());
}
return RPC.invokeAndEncodeResponse(remoteService, rpcRequest
.getMethod(), rpcRequest.getParameters(), rpcRequest
.getSerializationPolicy());
} catch (Exception e) {
if (rpcRequest != null) {
logger.error("An error occurred calling the GWT service method " + rpcRequest.getMethod() + ". Cause: " + e.getMessage(), e);
} else {
logger.error("An error occurred calling the GWT service " + (remoteService != null ? remoteService.getClass().getName() : remoteServiceName) + ". Cause: " + e.getMessage(), e);
}
return RPC.encodeResponseForFailure(null, e);
} finally {
if (remoteService != null) {
setServiceData(remoteService, true);