<route>
      <from uri="file:src/data?noop=true"/>
    <log message="NextGen Track"/>
    <setExchangePattern pattern="InOut"/>
    <to pattern="InOut"
uri="ahc:http://lnx142.us.dnb.com:8192/CommonServices/services/DNBCompanyService/match/"/>
    <process ref="nextgenProcessor"/>   
    </route>


<bean id="nextgenProcessor" class="com.cts.camel.Next2GenProcessor" />

i had added this process after to< http:
and in my class i had below code 
public class Next2GenProcessor implements Processor {

        @Override
        public void process(Exchange exchange) throws Exception {
                System.out.println("Hello from process method");
                String custom = exchange.getIn()
                                .getBody(String.class);
                
                System.out.println("Data "+custom);
                
        }

}



is this going to work.



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-call-external-client-using-camel-tp5774475p5774484.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to