I am trying to migrate native java code to spring and need to configure using spring XML config:
1. Persistent direct exchange (direct.ex) and queue (in.queue)
2. Binding rules that can route all messages received by the exchange to in.queue
3. A producer sending messages to exchange direct.ex and queue in.queue.
4. Consumer will consume messages from queue in.queue.

Please help by providing sample XML config to define this kind of configuration.