Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 59085 invoked from network); 1 Sep 2005 12:51:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2005 12:51:28 -0000 Received: (qmail 49193 invoked by uid 500); 1 Sep 2005 12:51:26 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 49177 invoked by uid 500); 1 Sep 2005 12:51:26 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 49160 invoked by uid 99); 1 Sep 2005 12:51:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2005 05:51:26 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [68.142.201.234] (HELO web30411.mail.mud.yahoo.com) (68.142.201.234) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Sep 2005 05:51:40 -0700 Received: (qmail 93151 invoked by uid 60001); 1 Sep 2005 12:51:23 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=6F88WYJIkysEFpe6C/djoE9AkFtysLSzJTHUcrLHGaUpW5sJifoL1/8tHzYXhLlrHFdYaCxlsT0hvmd0IXtqdHE3tVlX5+fy3e+ogHiGFI89ayxvC5GSgNEPhXKXLNBAcOLf2p72JGW4Gr9lRQvgWsCdPZ2RYLeu+kZ94S22Two= ; Message-ID: <20050901125123.93149.qmail@web30411.mail.mud.yahoo.com> Received: from [24.202.239.89] by web30411.mail.mud.yahoo.com via HTTP; Thu, 01 Sep 2005 05:51:23 PDT Date: Thu, 1 Sep 2005 05:51:23 -0700 (PDT) From: Oscar Picasso Subject: Ibatis and Junit tests To: user-java@ibatis.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I am testing an Ibatis application with Junit. I want to start each individual test method with a new database, so the Junit setup() method executes a script to create a new database and its schema and the Junit tearDown() method executes a shell script that drops the database. The Ibatis application use a DaoManager. The problem is that when tearDown() is executed there are still open connections so the shell script cannot drop the database. How can I close the connections opened by the framework? Thanks Oscar __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com