Issue Details (XML | Word | Printable)

Key: DIRSERVER-290
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Alex Karasulu
Reporter: Simon Temple
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Allow the installation of the shutdown handler to be optional for embedded servers

Created: 25/Jan/06 11:29 PM   Updated: 15/Feb/09 01:34 PM
Return to search
Component/s: None
Affects Version/s: pre-1.0
Fix Version/s: 1.0-RC1

Time Tracking:
Not Specified

Environment: Windows/UNIX JDK 1.4 - Embedded server within JBoss

Resolution Date: 29/Jan/06 03:42 PM


 Description  « Hide
I am using the directory embedded in JBoss. When we shutdown JBoss our
application services need to remove certain entries from the directory.
Unfortunately the shutdown handler in DefaultDirectoryServices closes Eve
out before we get chance to finish and we get errors:

org.apache.ldap.common.exception.LdapServiceUnavailableException:
Context operation unavailable when invoked after Eve provider has been
shutdown

When our services finally stop, we stop the directory using the
ShutdownConfiguration class so we don't really need the additional shutdown
thread.

I've commented out the shutdown hook code and our server is now behaving
how we want but I don't like running with patched source...


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.