[ 
https://issues.apache.org/jira/browse/CAMEL-12107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16326899#comment-16326899
 ] 

Claus Ibsen commented on CAMEL-12107:
-------------------------------------

The socketTimeout and connectTimeout you configure here

[https://github.com/rafaeltuelho/camel-sb-restlet-demo/blob/master/src/main/java/com/redhat/demos/Application.java#L79]

Those are for the rest-dsl, which is configured to be the restlet component. It 
has these 2 options for the endpoints

[https://github.com/apache/camel/blob/master/components/camel-restlet/src/main/docs/restlet-component.adoc]

However those are for the producer side, so on the consumer side, in the 
rest-dsl they have no effect.

> support for setting connection/socket timeout on camel-servlet using endpoint 
> properties
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-12107
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12107
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-servlet
>            Reporter: Rafael T C Soares
>            Assignee: Claus Ibsen
>            Priority: Major
>
> The default timeout used by {{camel-servlet}} seems to be 30000ms. I could 
> not find a way to change this timeout declaratively using some endpoint 
> option/property. 
> {{camel-restlet}} [1] has two endpoint properties to handle this 
> declaratively: {{connectionTimeout}} and {{socketTimeout}}. This is useful 
> when using camel-servlet in Camel DSL to expose http rest endpoints. 
> Sometimes you have scenarios where your work takes more than 30s to respond a 
> client consumer and you need to increase the default timeout.
> [1] http://camel.apache.org/restlet.html



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to