Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 90288 invoked from network); 30 Jan 2006 15:33:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jan 2006 15:33:09 -0000 Received: (qmail 55924 invoked by uid 500); 30 Jan 2006 15:33:08 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 55884 invoked by uid 500); 30 Jan 2006 15:33:08 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 55873 invoked by uid 99); 30 Jan 2006 15:33:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jan 2006 07:33:08 -0800 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [194.75.234.2] (HELO smtpgate.saa-cons.co.uk) (194.75.234.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jan 2006 07:33:05 -0800 Received: (from uucp@localhost) by smtpgate.saa-cons.co.uk (8.8.8/8.8.8) id PAA05696 for ; Mon, 30 Jan 2006 15:39:01 GMT (envelope-from Simon.Temple@saaconsultants.com) Received: from domino-mail.saa-cons.co.uk(10.10.10.4) by smtpgate.saa-cons.co.uk via smap (V2.1) id xma005688; Mon, 30 Jan 06 15:38:29 GMT To: "Apache Directory Developers List" From: Simon.Temple@saaconsultants.com Subject: Re: [jira] Resolved: (DIREVE-330) Allow the installation of the shutdown handler to be optional for embedded servers Date: Mon, 30 Jan 2006 15:33:04 +0000 Message-ID: X-MIMETrack: Serialize by Router on domino-mail/Saa(Release 6.5.1|January 21, 2004) at 30/01/2006 15:35:45 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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" cc: From: Simon.Temple@saaconsultants.com 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@directory.apache.org cc: From: "Alex Karasulu (JIRA)" Subject: [jira] Resolved: (DIREVE-330) Allow the installation of the shutdown handler to be optional for embedded servers [ http://issues.apache.org/jira/browse/DIREVE-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: false ... 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/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira