// get the JBI client (remote connection)
ServiceMixClient client = new RemoteServiceMixClient("tcp://localhost:61616");
// invoking a service
// create a in-out exchange
InOut exchange = client.createInOutExchange();
// get the "in" normalized message of the exchange
NormalizedMessage inMessage = exchange.getInMessage();
inMessage.setProperty("name", "smx");
inMessage.setContent(new StringSource("<hello>world</hello>"));