Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E34FA10C4B for ; Fri, 8 Nov 2013 21:29:21 +0000 (UTC) Received: (qmail 53866 invoked by uid 500); 8 Nov 2013 21:29:21 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 53812 invoked by uid 500); 8 Nov 2013 21:29:20 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 53804 invoked by uid 99); 8 Nov 2013 21:29:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Nov 2013 21:29:20 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [62.153.167.38] (HELO postserver.ibs-ag.de) (62.153.167.38) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Nov 2013 21:29:14 +0000 Received: from postserver.ibs-ag.de (localhost [127.0.0.1]) by postserver.ibs-ag.de (Postfix) with ESMTP id A093D9F286 for ; Fri, 8 Nov 2013 22:28:57 +0100 (CET) Received: from IBSCAX2.ibs-ag.com (unknown [192.168.14.12]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by postserver.ibs-ag.de (Postfix) with ESMTPS id 9E6EA9F1B9 for ; Fri, 8 Nov 2013 22:28:57 +0100 (CET) Received: from IBSCAX3.ibs-ag.com (172.16.0.153) by IBSCAX2.ibs-ag.com (192.168.14.12) with Microsoft SMTP Server (TLS) id 8.3.327.1; Fri, 8 Nov 2013 22:28:23 +0100 Received: from IBSMBX.ibs-ag.com ([fe80::b4de:34c2:e18a:e33d]) by IBSCAX3.ibs-ag.com ([::1]) with mapi; Fri, 8 Nov 2013 22:28:21 +0100 From: To: Date: Fri, 8 Nov 2013 22:28:19 +0100 Subject: Graceful shutdown sequence Thread-Topic: Graceful shutdown sequence Thread-Index: Ac7b7J31OOHE/4rjTYmF+GR9fisgeg== Message-ID: <2BE7E81B77921F43A6A273C2DF2FA6A43D01424268@IBSMBX.ibs-ag.com> Accept-Language: en-US, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, de-DE Content-Type: multipart/alternative; boundary="_000_2BE7E81B77921F43A6A273C2DF2FA6A43D01424268IBSMBXibsagco_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_2BE7E81B77921F43A6A273C2DF2FA6A43D01424268IBSMBXibsagco_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Sometimes stopping the server brutally in eclipse causes partition corrupti= on. I dug through archived messages on this topic but could not find a code exa= mple. I'm trying to shutdown gracefully so that the entire system exits, stopping= all the threads. This code below seems to shut down the incoming connections but it doesn't = shut down all threads. Any hints this? Thanks! LdapConnection ldapConnection =3D ... //admin connection GracefulShutdownRequest req =3D new GracefulShutdownRequest= Impl(); req.setDelay(0); req.setTimeOffline(0); ExtendedResponse res =3D ldapConnection.extended(req); ResultCodeEnum resultCode =3D res.getLdapResult().getResult= Code(); switch (resultCode) { case SUCCESS : LOG.info("Server shutting d= own"); break; default : LOG.error ("Server shutdown= failed : {} ", resultCode.toString()); } Carlo Accorsi IBS America A Siemens Business 24 Hartwell Ave | Lexington | Massachusetts | 02421 +1-781-862-9002 x129 (Office) | +1-781-676-8129 (Direct) | +1-781-862-9003 = (Fax) www.ibs-us.com | carlo.accorsi@ibs-ag.com Connect With Us: Twitter | Facebook | LinkedIn | Blog | Our Events The Quality Management System of: IBS America, Inc. has been assessed and approved by National Quality Assurance, U.S.A., against the provisions of: ISO 9001: 2008 --_000_2BE7E81B77921F43A6A273C2DF2FA6A43D01424268IBSMBXibsagco_--