Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[higgins-dev] JNDIContext close() does not close LDAP connections

In the JNDI context provider, the JNDIContext's close() does not close the
underlying connection to the LDAP server; it simply sets a flag to state
that the context is closed. Is there any reason behind this or is this a
defect?

As I understand, the open() call establishes a connection as well as
performs authentication. A subsequent close and open with a different
credential object would only need to do a re-bind, without closing the
existing connection.

In order to avoid leaking connections to the LDAP server, should the
JNDIContext class implement a finalize() method that would close the LDAP
connection or should that be done in the close() method?

Comments?

Thanks,
Best regards,
Rajalakshmi Iyer



Back to the top