Very simple example of application of RabbitMqBundle.
Do not forget to install RabbitMQ.
To run the consumer:
$ php app/console rabbitmq:consumer task_name
To produce the task for your consumer:
Open in your browser the project with a route /produce
e.g.: http://rabbitmq-basic/app_dev.php/produce