<!-- A reference to the org.springframework.amqp.rabbit.connection.ConnectionFactory --><rabbit:connection-factoryid="connectionFactory"host="localhost"username="worker"password="workerpassword"/><!-- Creates a org.springframework.amqp.rabbit.core.RabbitTemplate for access to the broker --><rabbit:templateid="amqpTemplate"connection-factory="connectionFactory"/><!-- Creates a org.springframework.amqp.rabbit.core.RabbitAdmin to manage exchanges, queues and bindings --><rabbit:adminconnection-factory="connectionFactory"/><!-- Creates a queue for consumers to retrieve messages --><rabbit:queuename="simple_queue"/><rabbit:listener-containerconnection-factory="connectionFactory"><rabbit:listenerqueues="simple_queue"ref="mqService"/></rabbit:listener-container>