I found this and wanted to blog it for my own info and someone else may find it useful. Below are code snippets to provide a list of scheduled tasks and mappings on a server - useful if you don't have administrator access to the server:
CF Scheduled Tasks
CODE:
-
<cfobject type="JAVA" action="Create" name="factory" class="coldfusion.server.ServiceFactory">
-
<cfset allTasks = factory.CronService.listAll()>
-
</cfset><cfset numberOtasks = arraylen(allTasks)>
-
<cfloop index="i" from="1" to="#numberOtasks#">
-
<cfoutput>
-
#allTasks[i].task#<br />
-
#allTasks[i].url#
-
<hr />
-
</cfoutput>
-
</cfloop>
-
-
<!--- you can also dump it --->
-
<cfdump var="#allTasks#">
ColdFusion Mappings
CODE:
-
<cfobject action="create" type="java" class="coldfusion.server.servicefactory" name="factory">
-
<cfscript>
-
runtimeservice = factory.getruntimeservice();
-
allmappings = runtimeservice.mappings;
-
</cfscript>
-
<cfabort />
-
<!--- you may also dump it --->
-
<cfdump var="#allmappings#">

You May Also Enjoy Reading: