-
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.
JIRA: https://jira.spring.io/browse/AMQP-796 If an admin uses a transactional `RabbitTemplate` it will start a transaction. If the connection was opened due to a `RabbitTemplate` operation it should participate in the same transaction. Previously, the template used a second channel and treated it as a local transaction. Also fix the `RabbitAdmin` so it does no work if there is nothing to declare. # Conflicts: # spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitAdmin.java # spring-rabbit/src/test/java/org/springframework/amqp/rabbit/core/RabbitAdminDeclarationTests.java # spring-rabbit/src/test/java/org/springframework/amqp/rabbit/core/RabbitAdminTests.java # spring-rabbit/src/test/java/org/springframework/amqp/rabbit/core/RabbitTemplateTests.java * Remove `RabbitTemplateTests` changes since they are not related to the current state of the `RabbitAdmin`: the `RabbitTemplate`-based constructor has been introduced since version `2.0`
- Loading branch information
1 parent
f78d916
commit f786c5b
Showing
5 changed files
with
67 additions
and
13 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
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
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
2 changes: 1 addition & 1 deletion
2
spring-rabbit/src/test/java/org/springframework/amqp/rabbit/core/RabbitAdminTests.java
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
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