Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using PoolingHttpClientConnectionManager in EJB container

  • We want to use HttpClient inside EJB container of Glassfish 3.1 Open source edition.
  • In HttpClient documentation 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?
like image 917
Guri Avatar asked May 27 '26 22:05

Guri


1 Answers

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.

like image 177
ok2c Avatar answered May 31 '26 17:05

ok2c



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!