Return-Path: Mailing-List: contact ibatis-user-java-help@incubator.apache.org; run by ezmlm Delivered-To: mailing list ibatis-user-java@incubator.apache.org Received: (qmail 89848 invoked by uid 99); 20 Dec 2004 14:25:50 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of clinton.begin@gmail.com designates 64.233.184.204 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.204) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 20 Dec 2004 06:25:47 -0800 Received: by wproxy.gmail.com with SMTP id 69so227356wra for ; Mon, 20 Dec 2004 06:25:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=ZFfWQflehoU0JWm5Z90WuN3eutX8UXt6LJp/MX4Q5VQ6VdseGjP5hTIzAk0LYWyrc5V2p11uEKEdVQbUBCs09Y4HG9hw+cKr8JFOO5ooSG0e1XThCxdxdrhLSWERtYhu3pNDeawPFz01fY9yR9ZfMI22dCJ7JoMEXp5jFMaVDXI= Received: by 10.54.36.77 with SMTP id j77mr12048wrj; Mon, 20 Dec 2004 06:25:41 -0800 (PST) Received: by 10.54.33.19 with HTTP; Mon, 20 Dec 2004 06:25:41 -0800 (PST) Message-ID: <16178eb104122006257520c4@mail.gmail.com> Date: Mon, 20 Dec 2004 07:25:41 -0700 From: Clinton Begin Reply-To: cbegin@ibatis.com To: ibatis-user-java@incubator.apache.org, mraad23@earthlink.net Subject: Re: Graceful Shutdown In-Reply-To: <000b01c4e69e$f0011300$96f1fea9@MERCURY> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <000b01c4e69e$f0011300$96f1fea9@MERCURY> X-Virus-Checked: Checked There's no shutdown in iBATIS, as 90% of the time the datasource is managed by an app server. However, you can get the DataSource instance from the SqlMapClient, cast it and then shut it down (assuming the datasource itself has a shutdown facility). Cheers, Clinton On Mon, 20 Dec 2004 09:19:32 -0500, Mansour Raad wrote: > > > > Hi, > > > > What is the proper way to shutdown sqlmap simple and dbcp datasources at the > end of a standalone application ? > > Is there a shutdown hook ? If so, I'm missing it ! I keep getting an EOF > warning from PostgreSQL server. > > > > Regards, > > Mansour > > J > >