RE: clearing connection pool/expiring connections

2005-07-13 Thread RADEMAKERS Tanguy
It must be possible because you can do it in the admin (Disable Connections checkbox in the datasource advanced settings page. All this stuff is accessible from the undocumented coldfusion.server.ServiceFactory object... which contains a DataSourceService object... which declares a

RE: clearing connection pool/expiring connections

2005-07-13 Thread Tanguy Rademakers
frederic, try this: [snip] To programmatically dis/enable a datasource, use the following code: cflock name=serviceFactory type=exclusive timeout=10 cfscript factory = CreateObject(java, coldfusion.server.ServiceFactory); ds_service = factory.datasourceservice; dsources =