change example to work with rabbitMQ.