-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AMQP-788 Add delegate publisher connection factory
JIRA: https://jira.spring.io/browse/AMQP-788 To avoid deadlocks, it is best to use a different connection for producers and consumers (unless the producer is partiticipating in a consumer transaction). - Add a delegate `publisherConnectionFactory` to the `CachingConnecetionFactory`. - Use the same underlying `com.rabbitmq.client.ConnectionFactory` in each. - Propagate all properties to the delegate. - Except, enhance the connection name and bean name with `.publisher`. - Add a boolean `usePublisherConnection` to the `RabbitTemplate`. - If true, use `createPublisherConnection()` when appropriate. Polishing - PR Comments Polishing - More PR Comments and Fix doSendAndReceiveWithDirect() to use the publishing CF. More polishing; tests + reinstate overloaded execute(). Fix (old) race condition in testReceiveAndReplyNonBlocking. https://travis-ci.org/spring-projects/spring-amqp/builds/317052188?utm_source=github_status&utm_medium=notification Polishing Docs
- Loading branch information
1 parent
c576b27
commit 4b78c20
Showing
11 changed files
with
410 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.