commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From haipeng du <>
Subject about basicdatasource
Date Mon, 29 Nov 2004 04:41:12 GMT
I have some basic questions about BasicDataSource.
I use getConnection() to get a connection to database. After I use
this connection to excute my sql, do I need to call some methods so
that I can return this connection for other use? If that is necessary,
How could I return connection?
Is that good to use other reference to point to connection: such as 
Connection c = datasourc.getConnection()?
If that is good when that reference is class member?
Thanks a lot.

Haipeng Du
Software Engineer
Salt Lake City

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message