ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: How to share a database connection between Tasks in ANT?
Date Mon, 12 Jun 2006 08:11:07 GMT
Only some thoughts ....
- datatypes support id/refid and are registered on the project


>-----Urspr√ľngliche Nachricht-----
>Von: ashish shrivastava [] 
>Gesendet: Montag, 12. Juni 2006 09:10
>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:
For additional commands, e-mail:

View raw message