Exchange exchange = endpoint.createExchange(ExchangePattern.InOut);
Message message = exchange.getIn();
message.setBody("Hello!");
message.setHeader("cheese", 123);
Producer producer = endpoint.createProducer();
producer.start();
producer.process(exchange);
// now lets sleep for a while
boolean received = latch.await(5, TimeUnit.SECONDS);