Utility Function: GetInstanceName()
- November 3, 2008 2:09 PM
- ColdFusion, Utility Function
- Comments (0)
I can't claim the core of this function as my own, it comes from a presentation by Adam Lehman on ColdFusion server administration. I wrapped his code snippet into a function for reuse.
<cffunction name="GetInstanceName" access="public" output="false" returntype="string">
<cfreturn createObject("java", "jrunx.kernel.JRun").getServerName() />
</cffunction>
<cfreturn createObject("java", "jrunx.kernel.JRun").getServerName() />
</cffunction>