You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/05/27 07:57:00 UTC

[jira] [Resolved] (CAMEL-15900) GeoCoderNominatimProducer should not create a new HttpClient on processing each exchange

     [ https://issues.apache.org/jira/browse/CAMEL-15900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-15900.
---------------------------------
    Resolution: Fixed

using a google library now that creates a http client on start

> 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
>            Priority: Minor
>             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.20.10#820010)