-
Notifications
You must be signed in to change notification settings - Fork 627
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-846: Fix send and receive with confirms
Fixes #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**
- Loading branch information
1 parent
ddf4f3e
commit 04018ad
Showing
2 changed files
with
28 additions
and
3 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