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

Update setUsePublisherConnection javadocs #1100

Merged
merged 2 commits into from
Sep 19, 2019

Conversation

kjastrzebski
Copy link

Docs in setUsePublisherConnection say this defaults to true since version 2.1 what, in my opinion, is not true

Docs in setUsePublisherConnection say this defaults to true since version 2.1 what, in my opinion, is not true
@pivotal-issuemaster
Copy link

@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.

@pivotal-issuemaster
Copy link

@kjastrzebski Thank you for signing the Contributor License Agreement!

@@ -245,7 +245,7 @@

private boolean userCorrelationId;

private boolean usePublisherConnection;
private boolean usePublisherConnection = true;
Copy link
Contributor

@garyrussell garyrussell Sep 19, 2019

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).

@kjastrzebski
Copy link
Author

Ok, so let's change the javadocs as users may be confused by them

@kjastrzebski kjastrzebski changed the title Set default of usePublisherConnection to true Update setUsePublisherConnection javadocs Sep 19, 2019
Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@garyrussell garyrussell merged commit 0ee05f1 into spring-projects:2.1.x Sep 19, 2019
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

Successfully merging this pull request may close these issues.

4 participants