Annotation Type SendTo
@Target({METHOD,TYPE}) @Retention(RUNTIME) @Documented public @interface SendTo
Annotation that indicates a method's return value should be converted to aMessage
if necessary and sent to the specified destination.In a typical request/reply scenario, the incoming
Message
may convey the destination to use for the reply. In that case, that destination should take precedence.The annotation may also be placed at class-level if the provider supports it to indicate that all related methods should use this destination if none is specified otherwise.
- Since:
- 4.0
- Author:
- Rossen Stoyanchev, Stephane Nicoll