2016-11-29 4 views
0

Ich benutze Talend Open Studio 5.6 ESB, ich mache eine Apache Kamel Route. Das Ende meiner Route ist:Wie konfigurieren Timeout für Apache Kamel Jetty Komponente

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

Vor diesem habe ich die URL in der Anlegestelle Komponente für Call overide ein Remote-Service. Dieser Dienst benötigt 30 Sekunden zum Antworten, die Route schließt die Verbindung und sendet einen Fehler 503. Wie kann ich das Zeitlimit erhöhen?

log Kamel:

[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 

reponse:

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> 

Antwort

0

Hier ist ein Beispiel:

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