Package org.apache.servicemix.client

Examples of org.apache.servicemix.client.RemoteServiceMixClient.createInOutExchange()


        // 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>"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.