Apologies, In the dim distant past I had changed the Scheduler service to the non persistant kind and forgotten about it.
David -----Original Message----- From: David Wynter [mailto:[EMAIL PROTECTED]] Sent: 29 November 2001 13:30 To: Turbine-User Subject: Scheduled Job not being created Hello, I am using Oracle 8.1.5 on W2k with the TDK 2.1. I lifted the example code from the Scheduler service section of the online docs. It executes in the action for the page where I collect the job entry attribute values. The problem is that I get no errors from the Job Entry creation and add and also no row in Turbine_Scheduled_Job? The Scheduler service is enabled in the TR props. I am using the ID_BROKER method of generating keys, which works for all the other objects I save. Here is the relevant code Relevant timings (second, etc.) are setup above this snip <snip> if(!task.equals("")) { //access the service singleton ScheduleService ss = (ScheduleService)TurbineServices .getInstance() .getService(ScheduleService.SERVICE_NAME); //create a new JobEntry with the time constraints from //the template as the arguments JobEntry je = new JobEntry(second,minute,hour,weekday,dom,task); //set the email for notification je.setEmail(""); //add the hashtable of arguments required by the scheduledjobs subclass je.setProperty(taskProps); //add the job to the queue ss.addJob(je); <snip> I looked in the archives and there was something about "Problem saving new Scheduled Job: java.lang.NullPointerException", but I am not getting this. However should I be using th elatest from CVS or can you get the scheduler service to work with 2.1? regards David -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
