Coldfusion code to get the mappings in the server
To find the mappings in the server, we can use the following code.
<cfset mappings = StructNew()>
<cfset ServiceFactory = createObject("java","coldfusion.server.ServiceFactory")>
<cfset mappings = ServiceFactory.runtimeService.getMappings()>
<cfdump var="#mappings#">
<cfset mappings = StructNew()>
<cfset ServiceFactory = createObject("java","coldfusion.server.ServiceFactory")>
<cfset mappings = ServiceFactory.runtimeService.getMappings()>
<cfdump var="#mappings#">
Comments
Post a Comment