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
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 =
2 matches
Mail list logo