Getting a peek at the ServiceFactory package provided in CFMX provides you with some information, and functionality that the Admin API doesn’t have. You can enhance the debugging output while developing, on-demand rolling of log files, register and start new gateways, and more. Here’s a good start to see what methods are available to you.

<cfscript>
factory = createobject("java", "coldfusion.server.ServiceFactory");
</cfscript>

<cfdump var="#factory#">

To see a full dump of the factory service follow the permalink to this message in the menu to the left. (it’s a truncated view with many unusable methods removed).

Here’s some fun methods to try out.

<cfdump var="#factory.LoggingService.rollLogs()#">
<cfdump var="#factory.DebuggingService.getDebugger().getData()#">