Wow nuts. if you do

<cfdump var="#factory#">

that is a bit overwhelming. ooof.

Thanks for the tip Jochem, this looks a bit easier then messing with the
serialized wddx file.


-----Original Message-----
From: Jochem van Dieten [mailto:jochemd@;oli.tudelft.nl]
Sent: Wednesday, October 30, 2002 2:52 PM
To: CF-Talk
Subject: Re: CFMX Scheduled tasks


Rob Rohan wrote:

> Anyone know where schedule tasks are kept in MX. They used to be kept in
> HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Schedule
> in 5.
>
> I have a process that needs to list the items in the current Schedule;
> however, I can't find them. They don't seem to be in the registry
> anymore. I assume they are in an XML file somewhere, but I haven't
> found it yet.

They are accessible through the ServiceFactory. I think all
functionality the administrator offers is, you just need to dig around a
bit because it is not documented (and it might change in the next release).

<cflock name="serviceFactory" type="exclusive" timeout="10">

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

     c_service = factory.cronService;
     tasks = c_service.listAll();
   </cfscript>
   <cfdump var="#tasks#">

</cflock>

Jochem


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
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

Reply via email to