Skip to content

consume from queue with no-ack mode #109

@avikoren

Description

@avikoren

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions