Last active
July 27, 2018 10:38
-
-
Save edwingsm/4b7c764d0f6508552a321503f03ebce2 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
public IntegrationFlow jmsInboundFlow() { | |
return IntegrationFlows | |
.from(Jms.inboundAdapter(connectionFactory) | |
.destination("pan.outbound")) | |
.transform((String s) -> s.toUpperCase()) | |
.channel("in-bound-request-channel") | |
.get(); | |
} | |
@Bean | |
public IntegrationFlow jmsOutboundGatewayFlow() { | |
return IntegrationFlows.from("out-bound-request-channel") | |
.handle(Jms.outboundAdapter(connectionFactory) | |
.destination("pan.outbound")) | |
.log() | |
.bridge() | |
.get(); | |
} | |
@MessagingGateway | |
interface EchoGateway { | |
@Gateway(requestChannel = "out-bound-request-channel") | |
String send(String message); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment