Apache Directory Project - Re: [jira] Resolved: (DIREVE-330) Allow the installation of the shutdown

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > January 2006 > Re: [jira] Resolved: (DIREVE-330) Allow the installation of the shutdown





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: [jira] Resolved: (DIREVE-330) Allow the installation of the shutdown
Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@

2006-01-30, 5:45 pm





Ignore this Alex... I just found
org.apache.ldap.server.standalone.simple.jndi-0.9.4-SNAPSHOT.jar!

Sorry.

SimonT

30 January 2006 15:24
To: "Apache Directory Developers List" <dev-aYN4UCa7k1r1N9kud6OZbmD2FQJk+8+b@public.gmane.org>
cc:
From: Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@public.gmane.org
Subject: Re: [jira] Resolved: (DIREVE-330) Allow the installation of the
shutdown handler to be optional for embedded servers







Alex

Many thanks for this but I have a small problem...

I can't find MutableServerStartupConfiguration in the current trunk. Can
you help?

If its an oversight, can we have it back again?

Regards

Simon Temple

29 January 2006 06:47
To: dev-aYN4UCa7k1r1N9kud6OZbmD2FQJk+8+b@public.gmane.org
cc:
From: "Alex Karasulu (JIRA)" <directory-dev-d1GL8uUpDdXTxqt0kkDzDmD2FQJk+8+b@public.gmane.org>
Subject: [jira] Resolved: (DIREVE-330) Allow the installation of the
shutdown handler to be optional for embedded servers



[ http://issues.apache.org/jira/brows...VE-330?page=all ]

Alex Karasulu resolved DIREVE-330:
----------------------------------

Fix Version: 0.9.4
Resolution: Fixed

Committed revision 373292.

Now you can add the following to your configuration:

<bean id="configuration"
class="org.apache.ldap.server.configuration.MutableServerStartupConfiguration">
<property name="shutdownHookEnabled"><value>false</value></property>
...

This will prevent the shutdown hook from being registered. When starting
programatically in embedded configurations just call
setShutdownHookEnabled(false) on the MutableStartupConfiguration or the
MutableServerStartupConfiguratioin.

> Allow the installation of the shutdown handler to be optional for

embedded servers
>

----------------------------------------------------------------------------------
>
> Key: DIREVE-330
> URL: http://issues.apache.org/jira/browse/DIREVE-330
> Project: Directory Server
> Type: Improvement
> Components: server main
> Versions: 0.9.4
> Environment: Windows/UNIX JDK 1.4 - Embedded server within JBoss
> Reporter: Simon Temple
> Assignee: Alex Karasulu
> Priority: Minor
> Fix For: 0.9.4


>
> 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...


--

This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com