public class

RemoteInvocationTraceInterceptor

extends Object
java.lang.Object
   ↳ org.springframework.remoting.support.RemoteInvocationTraceInterceptor

Class Overview

AOP Alliance MethodInterceptor for tracing remote invocations. Automatically applied by RemoteExporter and its subclasses.

Logs an incoming remote call as well as the finished processing of a remote call at DEBUG level. If the processing of a remote call results in a checked exception, the exception will get logged at INFO level; if it results in an unchecked exception (or error), the exception will get logged at WARN level.

The logging of exceptions is particularly useful to save the stacktrace information on the server-side rather than just propagating the exception to the client (who might or might not log it properly).

Summary

Fields
protected static final Log logger
Public Constructors
RemoteInvocationTraceInterceptor()
Create a new RemoteInvocationTraceInterceptor.
RemoteInvocationTraceInterceptor(String exporterName)
Create a new RemoteInvocationTraceInterceptor.
Public Methods
Object invoke(MethodInvocation invocation)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected static final Log logger

Public Constructors

public RemoteInvocationTraceInterceptor ()

Create a new RemoteInvocationTraceInterceptor.

public RemoteInvocationTraceInterceptor (String exporterName)

Create a new RemoteInvocationTraceInterceptor.

Parameters
exporterName the name of the remote exporter (to be used as context information in log messages)

Public Methods

public Object invoke (MethodInvocation invocation)

Throws
Throwable