Nuclos server client data: NuclosRemoteInvocationResult, userObject, NuclosHttpInvokerServiceExporter, executeRequest, statistics. |
Language: Deutsch · English
Transport additional data from server to client – NuclosRemoteInvocationResult and userObject.
Auf dieser Seite |
To transport additional data (besides the actual result) from the server to the client, there are NuclosRemoteInvocationResult and NuclosHttpInvokerServiceExporter.
NuclosRemoteInvocationResult contains the usual server result plus an optional userObject.NuclosHttpInvokerServiceExporter.invokeAndCreateResult.NuclosHttpInvokerProxyFactoryBean.executeRequest after the server call and processes it.final RemoteInvocationResult result = super.executeRequest(invocation);
if(result instanceof NuclosRemoteInvocationResult) {
NuclosRemoteInvocationResult nuclosResult = (NuclosRemoteInvocationResult) result;
// space for future use of this feature
} |
Originally intended for statistics (e.g. number of SQL calls or duration of a server call) – better than digging through log files. |