Get scheduler task without the ColdFusion Administrator

 

The scheduled task manager in the ColdFusion Administrator can be replicated outside of the administrator. You can add, update, run, and delete scheduled tasks from a tag and you can list all tasks using the unsupported ServiceFactory class

<cflock name="alltasks" type="exclusive" timeout="10">
    <cfscript>
        factory = CreateObject("java","coldfusion.server.ServiceFactory");
        cron_service = factory.CronService;
        services = cron_service.listALL();
    </cfscript>
</cflock>

<cfdump var="#services#" label="All Scheduled Tasks">

 

 

[+] View other examples

Small fish in the sea

A ColdFusion programer since 2006 which have developed various web based applications using Adobe ColdFusion (from version 4.5 to 9).

manoj_kothari9@yahoo.com
+91 9711601778

Join me on:

more about me

Video times

Here are some videos related to ColdFusion, Database tutorials. Hopefully it will be helpful for you.

view videos

Tip for the day

J2EE session management

If you use J2EE session management and configure the J2EE server to retain session data between server restarts, ColdFusion retains session variables between server restarts.

view detail

Guest book
Adobe ColdFusion 9