By default, the Message will be constructed from the return value of the method
and sent to a channel specified by the
However, a combination of both @Payload and @Header annotations
can be used to further manage the message structure. See the reference manual for
Note: unlike @Gateway, this annotation is used to generate an AOP Advice for an existing service and its method implementation. The message sending is a side effect of the real method invocation and is invoked after the method returns. The advised method(s) are not aware of the messaging interaction.
The XML equivalent is
public abstract String channel