I wonder how to use a DataSourceComponent and its connection in a custom avalon component, that is ThreadSafe, to use all performance and connection pool used in Cocoon.
Should I :
- get and close() a connection via datasource.getConnection() for each public method call,
- get a connection in the initialize() method from the interface Initializable, close() it on the dispose() method from Disposable interface, and only create a Statement for each public method call ?
- implement another avalon interface, like Runnable, to get/relase the Connection ?
Thank you,
-- Olivier BILLARD
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
