I am quite new to using RabbitMQ as message queuing protocol.I have written a code for sender and consumer work queue as given in RabbitMQ tutorials.
[Link : http://www.rabbitmq.com/tutorials/tutorial-two-java.html ]
The above thing works fine when we start the consumer before the sender. But there is an issue if we start the consumer after running the sender. None of the messages are consumed by those consumers which are started after running the sender. After looking into the architecture of RabbitMQ and the AMQP related things,it seems quite difficult.
1] Is it possible,that we start the consumer after sender and the consumer which are started after the sender receives the messages in Queue?
2] If yes.Then how this thing can be done.Is there some technique to do the same?