Dec
5
Reading time: < 1 minute
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>
Hey, thanks for that!
btw, your code snippet has CF comments inside a cfscript…
maybe us "//" instead of "<!— —>"?
Yeah you’re right David. I just added this comments when adding the post to the blog. It’s fixed now. That give’s me an idea. I’ll work on something to validate code to be posted on blogCFC.
Cheers