Product\ProductGateway.
If you want to register it under different name for example "productGateway", then pass it to annotation #[ClassReference("productGateway")]
Gateway
enables method to be used as Messaging Gateway. You may have multiple Gateways defined within interface.replyChannel
which contains automatically created Channel. During Endpoint's method invocation, if any value was returned it will be sent via reply Channel.
This way gateway may receive the reply and return it. Ecotone
to convert result of any Gateway to specific format. This is especially useful, when we are dealing with QueryBus
, when we want to return the result to the caller of the request.
In order to do this, we need to make use of Metadata
and replyContentType
header.$content
parameter to message payload$content
to message's payload and will add to headers under "receiverEmail" key value of $toEmail