Skip to content

Rejected status returned when publishing but message is successfully published to queue #67

Closed Answered by acogoluegnes
geniqtech asked this question in Q&A

You must be logged in to vote

The callback is asynchronous, so it is likely the publisher is closed before the message makes it to the broker, that is why it does not get accepted. Use a Thread.sleep(1000) or better a CountDownLatch to make sure the message reaches the broker and you get the confirmation.

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by acogoluegnes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #66 on September 26, 2024 06:09.