Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
servicemix-http-2008.01, servicemix-http-2009.01, servicemix-http-2009.02
-
None
-
Patch Available
Description
A couple of weeks ago I submitted a patch that added support for Jetty Client Expiration (read timeout) on the Http Provider Endpoint :https://issues.apache.org/activemq/browse/SMXCOMP-717
In most cases it is useful to be able to change the expiration time (the amount of time the endpoint will wait for response) on the component and the provider when using jettyClientPerProvider.
I am attaching a patch that adds a new property called providerExpirationTime on HttpConfiguration and HttpProviderEndpoint.
The patch also updates:
The HttpComponent to save / load the property from the components.property file.
The HttpProviderEndpoint so that it is possible to set this property explicitly per provider.
Finally, it adds a new unit test that tests the above using the following scenarios:
test expiration using providerExpirationTime set on HttpComponent configuration.
test expiration using providerExpirationTime set on the provider.
test no expiration.