I'm confused about the difference of Channel Adapters and Gateways in spring integration. As stated in https://stackoverflow.com/a/29992267/467944 by @gary-russell channel adapters are un-diirectional while gateways are bi-directional. If this is the case, why there is a amqp inbound gateway as well as an amqp outbound gateway?
What I'm trying to accomplish in the end is the following:
- Http request received within a controller
- place message on amqp queue
- consumer consumes messages and put result to result queue
- result arrives at controller
so I'd guess I need a gateway with an interface which is called from the controller and puts the payload to the amqp queue (configured as its request channel) while it listens for its answer on the its reply-channel. However with that configuration I always end up with a
MessageDeliveryException: Dispatcher has no subscribers for channel 'application.fromRabbit'
where fromRabibbit is my reply-queue.