James Netherton created CAMEL-15900:
---------------------------------------
Summary: GeoCoderNominatimProducer should not create a new
HttpClient on processing each exchange
Key: CAMEL-15900
URL: https://issues.apache.org/jira/browse/CAMEL-15900
Project: Camel
Issue Type: Improvement
Components: camel-geocoder
Reporter: James Netherton
Fix For: 3.x
GeoCoderNominatimProducer can invoke 3rd party location apis via the serverUrl
option. To do this, it creates an Apache HttpClient. However, the client is
created on every invocation of process(), which is not very efficient. It
should be possible to set up the client once, and reuse it.
Also none of the endpoint options for configuring a proxy server are passed to
the HttpClient. It would be good if they were.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)