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

GatewayProxyFactoryBean doesn't support Message<?> receive only variant [INT-4070] #8011

spring-operator opened this issue Jul 13, 2016 · 0 comments


Copy link

spring-operator commented Jul 13, 2016

Artem Bilan opened INT-4070 and commented

Looks like after the change dc86d88#diff-62dc05a878e8d43158ee7f80f233a38dL174
we lost the ability to have messaging gateway this way:

@Gateway(replyChannel = "fromKafka", replyTimeout = 10000)
Message<?> receiveFromKafka();

That's because the code in the MessagingGatewaySupport like:

protected Object receive() {
    return this.messagingTemplate.receiveAndConvert(replyChannel, null);

returns exactly payload, but not Message<?> as GatewayProxyFactoryBean expect:

if (shouldReturnMessage) {
	return gateway.receive();

Affects: 4.0.8, 3.0.8, 4.1.8, 4.3 GA, 4.2.8

Reference URL: spring-projects/spring-integration-samples#171

Issue Links:

Referenced from: pull request #1849

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants