Random Friday Railo tip: this.datasource
Andy Jarret recently blogged about the usage of this.datasource in Application.cfc. Just goes to show, it pays off reading the patch notes sometimes because it has been there for awhile ( since version 3.1.0.018 ):
[000059] add support for default datasource to cfapplication/application.cfcGo visit Andy's blog post for more details on how to use this.application. :) Another brief note is that this may be changing slightly in the future, but will always support the ACF Style ( this.datasource = "[some string]" ).



- mappings
- customtagpaths
- datasource (alias defaultdatasource)
why "defaultdatasource" is needed?
in ACF (and upcoming Railo version) "datasource" is also used as orm (hibernate) source, but when you prefer not to have the same datasource for orm and as default datasource, you can use "defaultdatasource" instead.
railo always first check for "defaultdatasource" and then for "datasource". upcoming version that supports orm will also have the alias "ormdatasource"
surfing the web looking for some additional tips and tutorials on
this. I also managed to find a couple of useful articles on CF at http://www.pdfok.com/application-cfm , I hope it's gonna be useful.