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

GH-3280: NullChannel as reply for void gateways #3292

Merged
merged 3 commits into from May 27, 2020

Conversation

artembilan
Copy link
Member

Fixes #3280

To properly support a one-way gateway (void return type), it is
better to ignore any possible replies from downstream instead of
unexpected no output-channel or replyChannel header available
error

  • Populate a nullChannel into a replyChannel header
    for void gateway methods when replyChannel is not set explicitly
  • Remove redundant GatewayProxyFactoryBean.PARSER in favor of
    similar EXPRESSION_PARSER in the super class
  • Test and document the feature

Fixes spring-projects#3280

To properly support a one-way gateway (`void` return type), it is
better to ignore any possible replies from downstream instead of
unexpected `no output-channel or replyChannel header available`
error

* Populate a `nullChannel` into a `replyChannel` header
for `void` gateway methods when `replyChannel` is not set explicitly
* Remove redundant `GatewayProxyFactoryBean.PARSER` in favor of
similar `EXPRESSION_PARSER` in the super class
* Test and document the feature
src/reference/asciidoc/whats-new.adoc Outdated Show resolved Hide resolved
src/reference/asciidoc/gateway.adoc Outdated Show resolved Hide resolved
artembilan and others added 2 commits May 27, 2020 15:57
Co-authored-by: Gary Russell <grussell@vmware.com>
Co-authored-by: Gary Russell <grussell@vmware.com>
@garyrussell garyrussell merged commit b8e2dfe into spring-projects:master May 27, 2020
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.

Gateway: evaluate setting a NullChannel replyChannel in case of void return type method
2 participants