Created
February 16, 2014 18:15
-
-
Save knalli/9038402 to your computer and use it in GitHub Desktop.
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
<beans> | |
<int-amqp:outbound-gateway | |
amqp-template="amqpTemplate" | |
request-channel="requestChannel" | |
reply-channel="resultChannel" | |
routing-key="queue"/> | |
</beans> |
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
<beans> | |
<int-amqp:outbound-gateway | |
amqp-template="amqpTemplate" | |
request-channel="requestChannelJson" | |
reply-channel="resultChannelJson" | |
routing-key="queue"/> | |
</beans> | |
<int:chain input-channel="requestChannel" output-channel="requestChannelJson"> | |
<int:object-to-json-transformer/> | |
</int:chain> | |
<int:chain input-channel="resultChannelJson" output-channel="resultChannel"> | |
<int:json-to-object-transformer type="your.package.to.Response"/> | |
</int:chain> |
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
<beans> | |
<int:gateway service-interface="your.package.to.MyGateway" | |
default-request-channel="requestChannel" | |
default-reply-channel="resultChannel" | |
error-channel="errorChannel"/> | |
</beans> |
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
@Service | |
public interface MyGateway { | |
@Gateway | |
Response handle(@Payload Request request); | |
} |
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
@Service | |
public interface MyGateway { | |
@Gateway | |
Future<Response> handle(@Payload Request request); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment