[rabbitmq-discuss] Synchronous Message Response
mpxr at yahoo.com.au
Tue May 10 02:37:02 BST 2011
I'm struggling with a simple concept of synchronous communication with
rabbitMQ, in terms of getting a response message back to the client.
I'm trying to work out how to send it and also what the client will need to do
to receive the message?
I have an exchange defined, I create a model, and queue, use .Call() and it
arrives in my "server". FYI syntax below is C#.NET 4.
var queueName = ch.QueueDeclare(queueId, false, false, false, null);
var client = new SimpleRpcClient(model, queueName)
var replyMessageBytes = client.Call(msgToSend);server side:
//similar setup like client side
var model = conn.CreateModel()
byte response; //... //how do I send a response?
//what does the client do to retrieve the ACK and RESPONSE.
I had a search of the mailing list archive and couldn't find a similar question
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss