Ecotone
, an object may declare a number of query handler methods, by annotating them with the #[QueryHandler]
attribute. Message
to @QueryHandler
by name we can use routing.
In below example Message will be routed by order.getOrders
. class/scalar/array
as long as Ecotone does know how to convert it if there is a need.
Read more in Method Invocation and Conversion​