HttpClient Instance AEM OSGI Workflow
I have an AEM OSGI Workflow application that makes a number of REST API calls as part of the workflow. For every REST call I am creating a new HttpClient instance and noticing some slow memory leak issues with this over a long period of time. The Apache documentation for HttpClient actually suggests to use a single instance of HttpClient throughout the lifetime of the application. Is something like this possible within AEM where I could maintain a single instance that can be used throughout each step of the workflow? Thanks for your help.
