I am new to rabbit mq.. and I have two different apps connected with rabbit mq. One with java and other with node js. Node js app is a publisher and java app is a consumer. 8 would like to know if a publisher can get acknowledged if the consumer received message successfully .
Currently if my receiver app is down then publisher app keeps on waiting for ever for message to be received
thank you for the response. that helped and I went through the links to implement below:I created a channel using,amqpConn.createConfirmChannel(function(err, ch) {and for publishing I am doing as below. when rabbitMQ server is up and consumer app is up, i see both the prints highlighted in bold. "Message confirmed" and "Message delivered to Receiver App". But when I shutdown the Receiver App, I still get both the prints.I was expecting one of the prints to miss since my Receiver App did not acknowledge and it was down. I also see the queue on rabbitMQ server has messages sitting there yet to be consumed. Please help on this? Thanks in advance.pubChannel.publish(exchange, msgType, content, reqq, function(err, ok) {if (err !=null) {console.log(cName," Error while publish", err);}else{console.log("Message confirmed");}});pubChannel.waitForConfirms(function(err){if(err !=null){console.error('ERR',err);}else{console.log('Message delivered to Receiver App');}});Best,
Pooja
On Sun, Dec 18, 2016 at 5:25 PM, Michael Klishin <mkli...@pivotal.io> wrote:
See tutorial 6 on http://www.rabbitmq.com/getstarted.html and http://www.rabbitmq.com/confirms.html.
Publishers are unaware of consumers unless consumers notify them.
On 19 December 2016 at 00:47:35, pooja khambhayata (pooja.kh...@gmail.com) wrote:
> Hello ,
>
> I am new to rabbit mq.. and I have two different apps connected with rabbit mq. One with
> java and other with node js. Node js app is a publisher and java app is a consumer. 8 would
> like to know if a publisher can get acknowledged if the consumer received message successfully
> .
>
> Currently if my receiver app is down then publisher app keeps on waiting for ever for message
> to be received
>
> --
> You received this message because you are subscribed to the Google Groups "rabbitmq-users"
> group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
> To post to this group, send an email to rabbitm...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
--
MK
Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/MwMcg8PKR_I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send an email to rabbitmq-users@googlegroups.com.