Gert just tweeted about the "Ram Resource Info" being available on the preview site ( http://preview.getrailo.org/ExtensionProvider.cfc ). I thought I'd take a moment to show you how to install and use it.
Random Friday Railo tip: this.datasource
micha said: we support every property that is possible in application.cfc in tag cfaplication as well like:
- m...
[More]
Random Friday Railo tip: this.datasource
Max said: For those still using Application.cfm like me, you can add the attribute defaultdatasource="myD...
[More]
Cache (Basic) Part 1
Sebastiaan said: Gert, thanx, that did it, never really understood what that trusted was for (not even after having r...
[More]
Cache (Basic) Part 1
Gert Franz said: Sebasitaan,
you can check whether the custom tag directory is marked as trusted or not. If it is,...
[More]
Cache (Basic) Part 1
Sebastiaan said: Customtags on Railo are a pain in the butt - everytime I make a change in the Customtag I have to re...
[More]
I wasn't aware of this until just this morning, but ram:/// is specific to each web context. Case in point, my screenshots were showing everything I did on http://testbed/ - I went over to my http://localhost/ and installed the application and my ram:/// is empty.
If that's true, I think it's actually cool that Railo implemented VFS so that each web context gets its own RAM space.
----
Another thing. At the moment the ram resource is defined in each web context’s railo-web.xml.cfm file. The definition looks like this:
<resource-provider
scheme="ram"
class="railo.commons.io.res.type.ram.RamResourceProvider"
arguments="case-sensitive:true;lock-timeout:1000;"/>
If you now copy the above definition to the railo-server.xml file like follows:
<resource-provider
scheme="gram" <<< this scheme just says something like global RAM
class="railo.commons.io.res.type.ram.RamResourceProvider"
arguments="case-sensitive:true;lock-timeout:1000;"/>
and restart the server, you could actually use a global ram resource in order to share files across the server. You can of course use any other scheme for it. Then after that you can use it like this:
<cffile action=”copy” source=”c:\temp.txt” destination=”gram:///test.txt”>