Bug 23364

Summary: JNDI Taglib does not close context when using <jndi:useDirContext> tag
Product: Taglibs Reporter: Mitch Winkle <mitchwinkle>
Component: JNDI TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: P3    
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Mitch Winkle 2003-09-23 19:33:49 UTC
This is important for freeing network resources on heavily laden web-app servers
as well as the LDAP servers they point at.

I had to add <% contextName.close(); %> to the end of my jsp page in order to do
a timely close of the connection to an LDAP resource.

In my Java code that uses JNDI and LDAP, I just use contextName.close() in the
finally clause so as not to forget :-)
Comment 1 Mitch Winkle 2003-09-25 16:58:29 UTC

*** This bug has been marked as a duplicate of 23363 ***