Annotation Interface OfCorrelationId


@Documented @Retention(RUNTIME) @Target(PARAMETER) public @interface OfCorrelationId
Specifies the binding point for correlation id. The annotation can be applied on both the client side, i.e., ByJms interfaces, and the server side, i.e., ForJmsType classes.

When applied to a parameter of a ByJms interface, it specifies the argument value should be used for Message.setJMSCorrelationID(String).

When applied to a parameter of a method on ForJmsType class, it binds the parameter to the incoming message's Message.getJMSCorrelationID().

Only String value is supported. null is supported.

Since:
1.0
Author:
Lei Yang