[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

Pooling mechanism to be used in J2EE projects

Can somebody help me in identifying pooling mechanism to use in application?
Resource pooling such as connection pooling is available through different ways - application server, ORM (Hibernate) are known to me.
Any other ways available?
and which is the best way? why?
1 Solution
Its a common feature given by most of the application servers. I would prefer going with application-server pooling mechanism (until I know for sure that the performance bottleneck is due to this pooling).
In the application server environment, you would normally configure hibernate to use the resources/services like transaction manager, connection pooling etc. directly from the application server.

The ones provided by hibernate are best used in non-application server environments
I would probably suggest configuring the resource pooling specific to individual application. In this case, the ideal way would be configuring it as part of hibernate properties rather at an application level. This would help us to individually configure the resource pooling and run multiple applications on a single application sever based on the different needs and environment of the different applications.

make sense?

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now