|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FEEDS SEARCH LINKS CONTACT jaya_hangal Template by Helquin |
Monday Dec 05, 2005
Problems with Pooling when using JNDI?
I am writing a blog on this topic because many advance
users of JNDI often have problems in getting the JNDI/LDAP pooling work
as expected Here I will try to provide some tips that will help in self analysis
of the application design.
JNDI provides a mechanism where by the connections used by different contexts can be pooled for the purposes of sharing. Pooling is required in production systems that need to create thousands of connections. The pooling mechanism requires that a JNDI application release resources i.e. Context references held by it by calling Context.close() and any NamingEnumeration instances created by the Context must also be closed. Closing the Context or the NamingEnumeration objects indicates to the pooling mechanism that the specific use of a connection by the Context object is over, and the connection can now be reused by a new Context that is waiting for it. Keeping track of all the Context instances becomes cumbersome
in a complex application. To aid tracking of Context objects in an application,
I will try to enumerate below all the cases when a new reference to a Context is created
Posted at 12:00AM Dec 05, 2005 by jaya_hangal in Java | Comments[0] Comments:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||