On Sun, 2014-12-07 at 10:34 +0200, Guri Livne wrote:
>    - We want to use HttpClient inside EJB container of Glassfish 3.1 Open
>    source edition.
>    - In HttpClient documentation
>    <http://hc.apache.org/httpcomponents-client-ga/tutorial/html/connmgmt.html>
> we
>    see the following line regarding BasicHttpClientConnectionManager: "This
>    connection manager implementation should be used inside an EJB container".
>    - There is no such line in PoolingHttpClientConnectionManager
>    documentation.
>    - Can we use PoolingHttpClientConnectionManager in EJB container?
>    - If not - can you explain why?
> 

You can but explicit thread management when running inside an EJB
container is prohibited by the EJB 3.1 spec, which effectively renders
PoolingHttpClientConnectionManager's pooling capabilities almost
useless.

Oleg 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to