ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ashish shrivastava" <ashish.ind...@gmail.com>
Subject Re: How to share a database connection between Tasks in ANT?
Date Mon, 12 Jun 2006 08:35:44 GMT
Can you elaborate

On 6/12/06, Jan.Materne@rzf.fin-nrw.de <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üngliche 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
>
>


-- 
"…partnering to build award winning software…exclusively for software and
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message