NIghtly build, all tests, JDK8

Build: #1611 was successful Scheduled with changes by Gary Russell

Build result summary

Details

Completed
Duration
6 minutes
Labels
None
Agent
bamboo-00.af.pivotal.io
Revision
1317215572afbf2dec91393858b65523c1a56cd6 1317215572afbf2dec91393858b65523c1a56cd6
Total tests
1141
Successful since
#1532 ()

Code commits

Author Commit Message Commit date
Gary Russell Gary Russell 1317215572afbf2dec91393858b65523c1a56cd6 1317215572afbf2dec91393858b65523c1a56cd6 GH-846: Fix send and receive with confirms
Fixes https://github.com/spring-projects/spring-amqp/issues/846

Send and receive with a direct container (the default) fails on the second
operation because the template is not registered as a listener with the
callback channel.

`doSendAndReceiveWithDirect` does not invoke `doSendAndReceiveAsListener`
within `execute` because the channel is obtained from the container.

The first send and receive succeeds because `execute` is invoked once in the
`useDirectReplyTo` which determines whether the broker supports direct
reply-to.

`addListener()` is called from `execute()` after a channel has been received
from the cache.

Fix is to call `addListener()` from `doSendAndReceiveWithDirect`.

**cherry-pick to 2.0.x**
# Conflicts:
#        spring-rabbit/src/test/java/org/springframework/amqp/rabbit/core/RabbitTemplatePublisherCallbacksIntegrationTests3.java

JIRA issues

IssueDescriptionStatus
Unknown Issue TypeGH-846Could not obtain issue details from JIRA