| Author |
Unwanted shutdown hook in DefaultDirectoryService?
|
|
| Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@ 2005-11-30, 5:45 pm |
|
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...
++++++++ Could we request that the installation of shutdownHook in
DefaultDirectoryService be optional?
I am using the latest build from the SVN trunk this morning.
TIA
- Simon Temple
| |
| Alex Karasulu 2005-11-30, 5:45 pm |
| Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@public.gmane.org wrote:
>
>
>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...
>
>++++++++ Could we request that the installation of shutdownHook in
>DefaultDirectoryService be optional?
>
>
Sure. I'll review and apply a patch to do that. I just don't have the
time right now to do this myself even though it sounds simple.
Alex
| |
| Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@ 2005-11-30, 5:45 pm |
|
Many thanks for accepting the change... I'll keep an eye out for the
patch...
FYI: I did as you asked and submitted the Mbean code to JIRA: DIREVE-309
Simon.
30 November 2005 15:45
To: Apache Directory Developers List <dev-aYN4UCa7k1r1N9kud6OZbmD2FQJk+8+b@public.gmane.org>
cc:
From: Alex Karasulu <aok123-Bdlq13kUjeyLZ21kGMrzwg@public.gmane.org>
Subject: Re: Unwanted shutdown hook in DefaultDirectoryService?
Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@public.gmane.org wrote:
>
>
>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...
>
>++++++++ Could we request that the installation of shutdownHook in
>DefaultDirectoryService be optional?
>
>
Sure. I'll review and apply a patch to do that. I just don't have the
time right now to do this myself even though it sounds simple.
Alex
|
|
|
|