ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ashish shrivastava" <>
Subject How to share a database connection between Tasks in ANT?
Date Mon, 12 Jun 2006 07:10:25 GMT
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

 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.

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