|
|
Hi all,
I have a CF6 application that is running well. However, I'm in the process of
upgrading to CF8, and some of the code no longer works. I've scoured the
documentation and haven't found information on the replacement code.
My old code gets a datasource, acquires a database connection, uses the
connection, and then closes the datasource.
variables.dsService = CreateObject("java",
"coldfusion.server.ServiceFactory").DataSourceService;
variables.dsManager = dsService.getDman();
variables.dataSource = variables.dsManager.getDataSource(<data source
name goes here>);
variables.dbConnection = variables.dataSource.getConnection();
<code to use the db connection goes here>
variables.dbConnection.close();
Under CF8, the error message is "The getDman method was not found." So I've
been unable to find any code that will let me get access to an object that
implements DataSource, so that I can use my connections.
Any advice would be appreciated.
Mike K.
|
|