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

Possible to disconnect only receiver? #338

Open
MorganLindqvist opened this issue Nov 7, 2017 · 0 comments
Open

Possible to disconnect only receiver? #338

MorganLindqvist opened this issue Nov 7, 2017 · 0 comments

Comments

@MorganLindqvist
Copy link

Hi,

I have an application that reads a message from an AMQP server processing the message and then writing ta message back to the AMQP server.

The challenge I have is that when terminating the application I can not stop listening to incoming messages, process the one that just read, and then write them to the server. If I do not do this there is a risk that the application will close while a message is processed and hence will be lost.

The disconnect function closes both the sender and receiver.

  • Is there a possibility to only close the receiver?
  • If not possible now, can it be added?
  • If not should I create two Amqp10 clients and use one for the receiver and one for the sender or is there a better solution?

/Morgan

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