Can you elaborate On 6/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] >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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- "…partnering to build award winning software…exclusively for software and services companies!" Ashish Kumar Shrivastava Software Engineer Impetus Impetus Infotech (P) Ltd. Indore India [EMAIL PROTECTED] [EMAIL PROTECTED] IM: [EMAIL PROTECTED] tel: mobile: +91-731-4269200 +919893311023