[opencms-dev] How to make Chron?

Eke, Kemi Kemi.Eke at community-fund.org.uk
Thu Nov 13 12:24:01 CET 2003


Hi Ivan

I've just made a CronJob recently and it works a treat.

First write your class, making it implement the I_CmsCronJob interface.
You must then implement the launch method, which is the method that is
executed by the system. (similar to main() in a normal class)thus:

 public String launch(CmsObject cmsObject, String param) throws
    MissingResourceException, CmsException
  { .... your code ...}

The param is a parameter coming from the Scheduled task Backoffice
interface, where you can enter the cron job timing details, thus

* * * * * yourpackage.Class param 
would run your job every minute of everyday with param being passed to the
class.

Hope that helps.  Also check
http://mail.opencms.org/pipermail/opencms-dev/2003q1/003830.html

Regards

Kemi Eke


--__--__--

Message: 3
From: "Ivan Jelenic" <ivan.jelenic at nbs.yu>
To: <opencms-dev at opencms.org>
Date: Thu, 13 Nov 2003 10:07:26 +0100
Subject: [opencms-dev] How to make Chron?
Reply-To: opencms-dev at opencms.org

This is a multi-part message in MIME format.

------=_NextPart_000_0029_01C3A9CD.F0A8CCD0
Content-Type: text/plain;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

Hi,

I want to make some chrons in my OpenCMS system. Does anybody know some =
starting point?
Thank you.

Best regards,
Ivan.

Information contained in this email plus any attachment is intended for
the use of the addressee only and is confidential, proprietary and may
be privileged. Any dissemination, distribution, copying or use of this
communication without the prior permission of the sender is prohibited.
If you are not the intended recipient you must not copy this message or
attachment or disclose the contents to any other person, but are
requested to telephone or email the sender and delete the message and
any attachment from your system. The contents of this message will not
be in any way binding upon the Community Fund. Opinions, conclusions,
contractual obligations and other information in this message, in so far
as they relate to the official business of the Community Fund, must be
specifically confirmed in writing by the Community Fund.
___________________________________________________________________
This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com



More information about the opencms-dev mailing list