I am trying to use syfmony2 framework with RabbitMqBundle from here
I am sure that my rabbitmq server is up and running and I am doing the configuration and publishers code accordingly to the docs delivered on github. Unfortunately I can`t add any message to the queue.
I am sure that my rabbitmq server is up and running. I have queue named accordingly to the symfony configuration file.
Have anyone got any clue what is wrong?
Thanks in advance for any suggestions.
well… try this simple example
then you should define your callback service. feel free to put it in
app/config.ymland yes. you should write this callback service. here is simple implementation. should be enough for understanding and check is it works for you.
then you should start rabbitmq server, run consumer and check was new exchange and queue added.
to run test consumer you should run
in your controller (where you want to send message to rabbitMQ put next code
Hope it’s more or less clear and will help you with rabbitmq.
PS: it’s easier to debug if you have rabbitmq management plugin. if you have no, use console commands like
rabbitmqctlto check queues/exchanges/consumers and so on…and also would be nice to see your configuration for producers/consumers. callback services code as well.