Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consume from queue with no-ack mode #109

Open
avikoren opened this issue Feb 23, 2021 · 0 comments
Open

consume from queue with no-ack mode #109

avikoren opened this issue Feb 23, 2021 · 0 comments

Comments

@avikoren
Copy link

I would like to implement the RPC use case on rabbitmq as described https://www.rabbitmq.com/direct-reply-to.html . but when executing the consume on the "amq.rabbitmq.reply-to", an exception is thrown

Execution error (ShutdownSignalException) at com.rabbitmq.client.impl.ChannelN/asyncShutdown (ChannelN.java:517).
channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - reply consumer cannot acknowledge, class-id=60, method-id=20)

It looks like the langohr library does not pass the no-ack option to rabbitmq api.
here is the consuming code:

(lc/subscribe channel "amq.rabbitmq.reply-to"  rpc-handler {:no-ack false})

thanks for you help

@avikoren avikoren changed the title consume from with no-ack mode consume from queue with no-ack mode Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant