public @ResponseBody String simple(@RequestBody String message) {
Message<String> operation = MessageBuilder.withPayload(message).build();
MessagingTemplate template = new MessagingTemplate();
template.setReceiveTimeout(1000);
Message response = template.sendAndReceive(inOperationChannel, operation);
return response != null ? response.getPayload().toString() : null;
}
}