// first we create our exchange using the endpoint
Endpoint endpoint = context.getEndpoint("direct:hello");
// repeat the test often enough to make sure preserved ordering is not a fluke
for (int i = 0; i < 10; i++) {
Exchange exchange = endpoint.createExchange();
// then we set the SQL on the in body
exchange.getIn().setBody("select * from customer order by ID");
// now we send the exchange to the endpoint, and receives the response from Camel
Exchange out = template.send(endpoint, exchange);