steve wrote: > > Hi, > > I'm using the datasource component in a servlet > and I have a "stupid" question. Once I have the > JdbcDataSource configured and use > getConnection() there is no API to give the > connection back. How is it handled? The only > test example is pretty simplistic in that it creates > a datasource then a connection and then closes > it and exits. If instead I am tyring to create the > DataSource in my servlet's init() and then in each > request handler get a connection does this model > fit how the API is inteded to be used? It seems to > work but I just wanted to make sure that the > connections are getting reclaimed. And that I'm using the DataSource as > intended. > > Thanks, and sorry again if this is stupid. I'm new to this stuff.
It was modeled after the JDBC extensions. Basically, once you obtain the connection, and you are done with it, close it. The close action returns the connection to the pool. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]