Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

apache camel jetty 8 or 9

I have a route with a camel jetty component. I want to add option httpClient for configure my component. This is my component

to("jetty:http://toOverRide/?bridgeEndpoint=false&throwExceptionOnFailure=false&httpClient.timeout=900000&continuationTimeout=900000&httpClient.maxRequestsQueuedPerDestination=4000&httpClient.maxConnectionsPerDestination=4000")


When I execute my route with TOS, I have this error :

Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: jetty:http://toOverRide/?bridgeEndpoint=false&continuationTimeout=900000&throwExceptionOnFailure=false due to: There are 2 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=



In jetty 8, there aren't parameters maxRequestsQueuedPerDestination and maxConnectionsPerDestination. The good names are maxConnectionsPerAddress and maxQueueSizePerAddress
When I build the route, I put the kar file in the Runtime. The route started without error... Because runtime use jetty 9

karaf@trun()> feature:list | grep jetty
jetty                                   | 9.2.10.v20150310 |          | Started     | standard-4.0.5                         |
jetty                                   | 8.1.14.v20131031 |          | Uninstalled | standard-4.0.5                     |



How use jetty 9 in TOS ?

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hi,
Here is a new feature jira issue: https://jira.talendforge.org/browse/PMESB-504.
Best regards
Sabrina