[opencms-dev] how to acces cms object when writing a new class
Joachim Arrasz
info at arrasz.de
Tue Jul 19 12:51:09 CEST 2005
Hi,
> my program works as an .jsp file but i understood one
> cannot use an jsp file to run as a scheduled job.
> or am i wrong with this assumption.
no that´s right. You have to publish this new class via the Ocms system
so that the webapps classloader can find it. (upload into a new Modules
"classes" folder, then publish the class)
> thank you already in advance
see this interface ... you have to implement this if you want to add a
scheduled Job:
http://synyx.de/api/opencms6b3/org/opencms/scheduler/I_CmsScheduledJob.html#launch(org.opencms.file.CmsObject,%20java.util.Map)
hth
Achim
--
Dipl. Inf.(FH) Joachim Arrasz - joachim.arrasz at synyx.de
www.synyx.de Opensource Solutions - OpenCMS Solution Provider
irc.synyx.de/6667 #opencms http://irc.synyx.de
http://www.opencms-forum.de
76135 Karlsruhe
More information about the opencms-dev
mailing list