| Auszug |
|---|
|
Nuclos server client data: NuclosRemoteInvocationResult, userObject, NuclosHttpInvokerServiceExporter, executeRequest, statistics. |
Language: Deutsch · English
Transferring data from the server to the client
Transport additional data from server to client – NuclosRemoteInvocationResult and userObject.
| Status |
|---|
| colour | Green |
|---|
| title | Updated: Jul 2026 |
|---|
|
| Status |
|---|
| colour | Grey |
|---|
| title | applies to Nuclos 4.2026.x |
|---|
|
To transport additional data (besides the actual result) from the server to the client, there are NuclosRemoteInvocationResult and NuclosHttpInvokerServiceExporter.
Mechanism
NuclosRemoteInvocationResult contains the usual server result plus an optional userObject.- The server sets the object in
NuclosHttpInvokerServiceExporter.invokeAndCreateResult. - The client reads it in
NuclosHttpInvokerProxyFactoryBean.executeRequest after the server call and processes it.
| Codeblock |
|---|
|
final RemoteInvocationResult result = super.executeRequest(invocation);
if(result instanceof NuclosRemoteInvocationResult) {
NuclosRemoteInvocationResult nuclosResult = (NuclosRemoteInvocationResult) result;
// space for future use of this feature
} |
| Info |
|---|
|
Originally intended for statistics (e.g. number of SQL calls or duration of a server call) – better than digging through log files. |
Related pages