Marcos Placona
Marcos Placona
~1 min read

Categories

  • coldfusion

Just found it on my old ColdFusion installation and thought it might be useful for someone in a multiple Jrun installations environment.

<cfscript>
    //Instatiate JRUN
    jrunObj = createObject("java", "jrunx.kernel.JRun");
    //Get it's name
    thisServer = variables.jrunObj.getServerName();
    You're on #thisServer#
</cfscript>