[rabbitmq-discuss] How to use Consumer as Producer in rabbitmq

sam_mis sameek at arosys.com
Thu Sep 23 13:26:23 BST 2010

specialsaran wrote:
> Hi,
> I am new to RabbitMQ , i would like to know how to use consumer as
> producer and vice versa ie the consumer will use to receive the message
> from the queue at the same time it should be able to transmit the message
> to the exchange and same for producer too , it should transmit and receive
> message.
> Thankyou in advance
> Saran 

Here service.java file contain the code for producer and consumer.
The route of the messages would be: 
C1 -> X1 -> Q1 -> C2 
C2 -> X1 -> Q2 -> C1 
where C1 and C2 are your clients.
http://old.nabble.com/file/p29788719/Service.java Service.java 
and the result.java file can listen the response queue and print the
result.here i m using only one exchange.
http://old.nabble.com/file/p29788719/Result.java Result.java 

View this message in context: http://old.nabble.com/How-to-use-Consumer-as-Producer-in-rabbitmq-tp29736359p29788719.html
Sent from the RabbitMQ mailing list archive at Nabble.com.

More information about the rabbitmq-discuss mailing list