Hi Willem Jiang
Thanks for your response bellow I mentioned my camel route.
<camel:route>
                        <camel:from 
uri="timer://nextCallEndpoint?period={{rest_call_timeout}}"/>
                        <camel:log message="Going to hit webservice to get json"
loggingLevel="INFO"/>
                        <camel:bean ref="restClient" 
method="getNextBatch({{target}},{{next}})"/>
                        <camel:onException>
                      
<camel:exception>java.net.UnknownHostException</camel:exception>
                      
<camel:handled><camel:constant>true</camel:constant></camel:handled>
                      <camel:transform>
                                
<camel:constant>{{service_unavailable}}</camel:constant>
                      </camel:transform>
                      <camel:bean ref="exceptionHandler"/>
                        </camel:onException>
                        <camel:log message="Method: 
getNextBatch({{target}},{{next}})"
loggingLevel="DEBUG"/>
                        <camel:bean ref="checkRestResponse" method="process"/>
                        <camel:choice>
                                <camel:when>
                                        <simple>${body} != ''</simple>
                                        <camel:log message="sending msg to 
seda:masterJsonsQueue"
loggingLevel="DEBUG"/>
                                        <camel:to 
uri="seda:queue:masterJsonsQueue"/>
                                </camel:when>
                        </camel:choice>
                </camel:route>

<jaxrs:client id="restClient" address="${url}"
                serviceClass="com.common.webservices.WebServiceCaller" >
        </jaxrs:client>



--
View this message in context: 
http://camel.465427.n5.nabble.com/Unable-to-get-response-from-rest-service-tp5752505p5752537.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to