<cffunction name="getInstanceName" output="false" returntype="any" hint="returns the current instance name">
<cfset var instance_name = createObject("java","com.adobe.coldfusion.entman.ProcessServer").getInstanceName()>
<cfreturn instance_name>
</cffunction>
<cfdump var="#getInstanceName()#" />
This works in CF 11 both in CommandBox and also in a locally installed CF 11 server. It also works in a locally installed CF 2018 server, but not in CF 2018 that
is spun up in CommandBox.
Would just like verification that is just not me. :)
Hope ITB is going well. Wish I had been able to attend.
Thanks in advance.
byron