-
Notifications
You must be signed in to change notification settings - Fork 626
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
Update setUsePublisherConnection javadocs #1100
Conversation
Docs in setUsePublisherConnection say this defaults to true since version 2.1 what, in my opinion, is not true
@kjastrzebski Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@kjastrzebski Thank you for signing the Contributor License Agreement! |
@@ -245,7 +245,7 @@ | |||
|
|||
private boolean userCorrelationId; | |||
|
|||
private boolean usePublisherConnection; | |||
private boolean usePublisherConnection = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to change the javadoc instead. It turned out that true
is not a safe default and will break many existing applications.
The problem is that any auto-delete, exclusive Queue
beans in the application context will be declared on the producer connection and any listener containers that consume from those queues will fail to start because they can only be accessed on the connection on which they were declared.
You can see many examples of this in the travis report (failed tests).
Ok, so let's change the javadocs as users may be confused by them |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Docs in setUsePublisherConnection say this defaults to true since version 2.1 what, in my opinion, is not true