globe with meridians Sprache: Deutsch · English

light bulb Daten vom Server in den Client übertragen

Zusatzdaten vom Server zum Client transportieren – NuclosRemoteInvocationResult und userObject.

KONZEPT ENTWICKLER STAND: JUL 2026 GILT FUER NUCLOS 4.2026.X

Auf dieser Seite

Um zusätzliche Daten (neben dem eigentlichen Ergebnis) vom Server in den Client zu transportieren, gibt es NuclosRemoteInvocationResult und NuclosHttpInvokerServiceExporter.

Mechanismus

  • NuclosRemoteInvocationResult enthält das übliche Server-Ergebnis und optional ein userObject.
  • Der Server setzt das Objekt in NuclosHttpInvokerServiceExporter.invokeAndCreateResult.
  • Der Client liest es in NuclosHttpInvokerProxyFactoryBean.executeRequest nach dem Server-Call aus und bereitet es auf.
final RemoteInvocationResult result = super.executeRequest(invocation);
if(result instanceof NuclosRemoteInvocationResult) {
	NuclosRemoteInvocationResult nuclosResult = (NuclosRemoteInvocationResult) result;
    // space for future use of this feature
}        

Anwendungsfälle

Ursprünglich für Statistik gedacht (z.​B. Anzahl SQL-Aufrufe oder Dauer eines Server-Calls) – besser als das Durchforsten von Log-Dateien.

Verwandte Seiten

gear Detailierte Client Informationen im Server


Client-Infos.

Öffnen →

  • Keine Stichwörter