Skip to content

Instantly share code, notes, and snippets.

@edwingsm
Last active July 27, 2018 10:38
Show Gist options
  • Save edwingsm/4b7c764d0f6508552a321503f03ebce2 to your computer and use it in GitHub Desktop.
Save edwingsm/4b7c764d0f6508552a321503f03ebce2 to your computer and use it in GitHub Desktop.
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