How can I read the default application.datasource file from my code?
The application dump does not show me the data source, and trying to read application.datasourcegives an error.
application.datasource
Try resetting application.getApplicationSettings ()
Try restarting the application. You cannot just reset the application and see the data source. But if you have this set in application.cfc, it should work.
component output = "false" {this.name = "MyDemo"; this.datasource = "DemoDB"; }
: , .
Application.cfc onApplicationStart(), onSessionStart() onRequestStart() ..
If you want to set variables, in your onApplicationStart () just save in the application area.
application.myVariable = myVariable;
Source: https://habr.com/ru/post/1776361/More articles:PHP: how to prevent unwanted line breaks - htmlHow to get evenly distributed selection from Perl array values? - arraysПочему работает отражение (вызов частного метода ECMA-335)? - reflectionDynamically return a list of all values of a class variable in Java - javaначинающий вопрос о многопроцессорности python? - pythonWhy is my sed command not working when using variables? - linuxhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1776363/getting-the-locations-of-desktop-icons&usg=ALkJrhi3r1kADhJsAqNPmdGwzdTlAMhinAДиалоговое окно загрузки файла в IE6 "Отменено действие - internet-explorer-7Wi-Fi Disabling Approach - androidIs there a way to pause running a Java program in Eclipse on a Macbook Pro? - javaAll Articles