Over a million developers have joined DZone.

The Basics of Connection Pools in Glassfish

· Performance Zone

Download Forrester’s “Vendor Landscape, Application Performance Management” report that examines the evolving role of APM as a key driver of customer satisfaction and business success, brought to you in partnership with BMC.

Connection and resource pooling (including thread and instance pooling) is a key value proposition of modern application servers like GlassFish and WebLogic to significantly boost scalability (in fact, WebLogic has long had significantly richer pooling features than GlassFish). While most in the Java EE community take this for granted, many other less mature and robust server-side platforms lack this feature. Indeed, many newcomers to Java EE do not seem to quite grasp connection pooling, even database connection pools. Andy Overton of C2B2 consulting comes to the rescue!

In a very written recent blog entry, Andy explains the basics of database connection pools, demonstrates step-by-step how to setup a connection pool in GlassFish a few different ways and discusses some key configuration options such as pool sizing along with outlining some best practices. It is well worth a read if you are a GlassFish or Java EE fan!

See Forrester’s Report, “Vendor Landscape, Application Performance Management” to identify the right vendor to help IT deliver better service at a lower cost, brought to you in partnership with BMC.


Published at DZone with permission of Reza Rahman, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}