I assume you have uncommented the TurbineSchedulerService in your
TurbineResource.properties file

You have scheduler.enabled=true

I organize my scheduled jobs like the following

package com.myapp.modules.scheduledjobs;
public class EmailNotice extends ScheduledJob
{}

then you have the entry in your database for running the job
mysql> select * from TURBINE_SCHEDULED_JOB;
+--------+--------+--------+------+----------+--------------+----------------------+---------------------+----------+
| JOB_ID | SECOND | MINUTE | HOUR | WEEK_DAY | DAY_OF_MONTH | TASK        
        | EMAIL               | PROPERTY |
+--------+--------+--------+------+----------+--------------+----------------------+---------------------+----------+
|      1 |      0 |     18 |   -1 |       -1 |           -1 | EmailNotice
| [EMAIL PROTECTED] | NULL     |
+--------+--------+--------+------+----------+--------------+----------------------+---------------------+----------+
1 row in set (0.00 sec)

thus, your task is just the class name, if you stored the object in the
proper package format.

Hopefully, this helps :) I haven't looked at quartz, but that is also an
option and others may be able to tell you how it is better than the
default TurbineScheduler.

--
Jeffery Painter


> Hi all,
>
>         I'm attempting to schedule a job using the scheduler service.
> Problem is I keep getting null pointers due to the module.packages
> directive in TurbineResources.properties.
>
> My directive is as follows:
>
> module.packages=org.apache.jetspeed.modules
> module.packages=com.lwsi.util,org.apache.turbine.modules
>
> The classname is UpdateScheduler, so naturally UpdateScheduler.class is
> residing in WEB-INF/classes/com/lwsi/util/
>
> Can someone point me in the right direction to make sure that the class
> path is set properly?
>
>
> ______________________
> Shawn Haworth
> LWSI/WebDev Programmer


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to