How to get application data source name in Coldfusion 10?

In Coldfusion 9, to get the application data source outside of application.cfc, I used application.getApplicationSettings().datasource .

In Coldfusion 10, getApplicationSettings() been replaced with ApplicationGetMetadata() . So I tried ApplicationGetMetaData().datasource , but the ApplicationGetMetadata() function is currently not working ... (see documentation and comments).

So, how can I get the name of the application data source (this.datasource in application.cfc) outside the application.cfc application in CF10?

+8
coldfusion coldfusion-10
source share
1 answer

The ColdFusion function is not called ApplicationGetMetaData . The correct function name is GetApplicationMetaData() .

You can get the datasource application by calling GetApplicationMetaData().datasource .

+14
source share

All Articles