Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 37752 invoked from network); 12 Jun 2006 08:36:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jun 2006 08:36:11 -0000 Received: (qmail 82903 invoked by uid 500); 12 Jun 2006 08:36:08 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 82224 invoked by uid 500); 12 Jun 2006 08:36:06 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 82213 invoked by uid 99); 12 Jun 2006 08:36:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2006 01:36:05 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ashish.indore@gmail.com designates 66.249.82.197 as permitted sender) Received: from [66.249.82.197] (HELO wx-out-0102.google.com) (66.249.82.197) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2006 01:36:04 -0700 Received: by wx-out-0102.google.com with SMTP id i28so832712wxd for ; Mon, 12 Jun 2006 01:35:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=QnFBAeaj91wCCstJINLpo9hhWTJxP+/TGjD7C1heuCywmU71Up+AesUxRcGlM3e7V2SpVCgzbrPBJVFc2LMtyhnIEjq2gfk2F+Wehuf2NDsJcEZBNbMMooJYCEOdFD8dOBdq2xIPI/mk/A101/upP4pApIaI/L4m/+36IqIUNhQ= Received: by 10.70.65.11 with SMTP id n11mr1070366wxa; Mon, 12 Jun 2006 01:35:44 -0700 (PDT) Received: by 10.70.47.16 with HTTP; Mon, 12 Jun 2006 01:35:44 -0700 (PDT) Message-ID: <12d14fba0606120135se35e665ve507069c699d297a@mail.gmail.com> Date: Mon, 12 Jun 2006 14:05:44 +0530 From: "ashish shrivastava" To: "Ant Users List" Subject: Re: How to share a database connection between Tasks in ANT? In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10402_12849725.1150101344076" References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_10402_12849725.1150101344076 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Can you elaborate On 6/12/06, Jan.Materne@rzf.fin-nrw.de wrote: > > Only some thoughts .... > - datatypes support id/refid and are registered on the project > > http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/= ant/types/ > > http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/= ant/types/DataType.java > > > Jan > > >-----Urspr=FCngliche Nachricht----- > >Von: ashish shrivastava [mailto:ashish.indore@gmail.com] > >Gesendet: Montag, 12. Juni 2006 09:10 > >An: user@ant.apache.org > >Betreff: How to share a database connection between Tasks in ANT? > > > >I have a set of Tasks all requiring access to the very same > >class instance (a db connection in practice). How can I > >implement that with ANT? > > > > So far, I have tried to implement this behaviour via a > >TaskContainer but I can't get back the TaskContainer instance > >from a Task, and hence the reference to the object I would > >like to share via the TaskContainer, as far as the > >TaskContainer and the Tasks are loaded in separate class loaders. > > > >I am converting a java based deploytool to ANT deployment > >process.Theexisiting deploytool creates a connection pool and > >then uses it subsequently to perform any database operation.I > >am trying to implement the same.myimpression of SQL Task in > >ANT is that i need to create a new connection each time for > >performing DB operation. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --=20 "=85partnering to build award winning software=85exclusively for software a= nd services companies!" Ashish Kumar Shrivastava Software Engineer Impetus Impetus Infotech (P) Ltd. Indore India ashish.shrivastava@impetus.co.in ashish.indore@gmail.com IM: ashish_sgsits2002@yahoo.co.in tel: mobile: +91-731-4269200 +919893311023 ------=_Part_10402_12849725.1150101344076--