You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by bu...@apache.org on 2003/09/23 21:33:08 UTC
DO NOT REPLY [Bug 23363] New: -
JNDI Taglib does not close context when using tag
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23363>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23363
JNDI Taglib does not close context when using <jndi:useDirContext> tag
Summary: JNDI Taglib does not close context when using
<jndi:useDirContext> tag
Product: Taglibs
Version: 1.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Major
Priority: Other
Component: JNDI Taglib
AssignedTo: taglibs-dev@jakarta.apache.org
ReportedBy: mitchwinkle@yahoo.com
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 :-)