Dave Watts wrote:
>
>CFMX doesn't store any configuration information in the registry. I think
>that scheduled events are stored in \CFusionMX\lib\neo-cron.xml.
>
>But, rather than edit that file directly while CF is running, you might
>instead want to use the appropriate API. Jochem van Dieten's site has
>information on that; I don't remember the URL offhand, but I'm sure it's
>in the list archives somewhere.

What you need to have is the cronservice and then listAll().
<cflock name="serviceFactory" type="exclusive" timeout="10">
  <cfscript>
    factory = CreateObject("java", "coldfusion.server.ServiceFactory");
    cronservice = factory.cronservice;
    tasks = cronservice.listAll();
  </cfscript> 
  <cfdump var="#tasks#"> 
</cflock>

This will return a complete list of all the scheduled tasks defined on the system. To 
make sure you can always identify which task belongs to who you should stick to some 
convention for the name. The actual changing of tasks can be done using cfschedule (be 
sure to revoke cfschedule permissions for your clients).
Make sure your clients don't schedule anything between 02:00 and 03:00 because of DST 
issues.

Jochem
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to