Marcos Placona
Marcos Placona
Developer evangelist at Twilio, GDE and in ❤️ with Open Source
~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>

YOU MIGHT ALSO LIKE