【问题标题】:How configure timeout for apache camel jetty component如何为 apache camel jetty 组件配置超时
【发布时间】:2017-04-13 11:42:16
【问题描述】:

我使用 Talend Open Studio 5.6 ESB,我做了一个 apache 骆驼路线。我的路线的终点是:

.removeHeaders("CamelHttpPath")
.removeHeaders("CamelHttpUrl")
.removeHeaders("CamelServletContextPath")
.to("jetty:http://toOverRide?bridgeEndpoint=false&throwExceptionOnFailure=false&useContinuation=false&httpClient.timeout=120000&httpClient.idleTimeout=120000")

在此之前,我覆盖了码头组件中的 url 以调用远程服务。此服务需要 30 秒回复,路由关闭连接并发送错误 503。如何增加超时时间。

日志骆驼:

[WARN ]: org.apache.camel.component.jetty.CamelContinuationServlet - Continuation expired of exchangeId: ID-A1995-62398-1480423883621-0-1
[WARN ]: org.apache.camel.component.jetty.CamelContinuationServlet - Cannot resume expired continuation of exchangeId: ID-A1995-62398-1480423883621-0-1

回复:

HTTP/1.1 503 Service Unavailable
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 1325
Server: Jetty(8.y.z-SNAPSHOT)

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 503 Service Unavailable</title>
</head>
<body>
<h2>HTTP ERROR: 503</h2>
<p>Problem accessing /sync/mockTmcWithLog/utilisateurs/30000. Reason:
<pre>    Service Unavailable</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>  
</body>
</html>

【问题讨论】:

    标签: apache-camel


    【解决方案1】:

    这是一个例子:

    .to("jetty:http://toOverRide?continuationTimeout=900000&httpClient.timeout=900000")
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-16
      • 1970-01-01
      相关资源
      最近更新 更多