@ManagedOperation(description = "Send body (in only)")
public void sendBody(String endpointUri, String body) throws Exception {
ProducerTemplate template = context.createProducerTemplate();
template.sendBody(endpointUri, body);
template.stop();
}
@ManagedOperation(description = "Request body (in out)")
public Object requestBody(String endpointUri, String body) throws Exception {
ProducerTemplate template = context.createProducerTemplate();