To: users@tomcat.apache.org
Subject: RE: Scheduling tasks in Tomcat
mgainty wrote:
javac .\org\quartz\ee\servlet\QuartzInitializerServlet.java
place .\org\quartz\ee\servlet\QuartzInitializerServlet.class to
WEB-INF/classes
Okay so QuatzInitializerServlet.java is the class that I create for
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Martin,
On 4/27/2009 9:39 PM, Martin Gainty wrote:
> javac .\org\quartz\ee\servlet\QuartzInitializerServlet.java
> place .\org\quartz\ee\servlet\QuartzInitializerServlet.class to
> WEB-INF/classes
>
> your web.xml will need to associate the Servlet
al Message-
From: Aden Jones [mailto:adenjo...@gmail.com]
Sent: Tuesday, April 28, 2009 9:35 AM
To: users@tomcat.apache.org
Subject: RE: Scheduling tasks in Tomcat
mgainty wrote:
>
>
> javac .\org\quartz\ee\servlet\QuartzInitializerServlet.java
> place .\org\quartz\ee\servlet\QuartzIn
Étant donné que
> les email peuvent facilement être sujets à la manipulation, nous ne
> pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>
>
>> Date: Mon, 27 Apr 2009 17:52:16 -0700
>> From: adenjo...@gmail.com
>> To: users@tomc
ire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Mon, 27 Apr 2009 17:52:16 -0700
> From: adenjo...@gmail.com
> To: users@tomcat.apache.org
> Subject: Re: Scheduling t
I will probably use quartz to schedule the actual task and add it to my
webapp as my teacher would prefer that the servlet contains everything.
What I don't understand is how or if (after I create my class that contains
the scheduling code) Tomcat actually runs the code. Do I need to add
somethin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Aden,
On 4/27/2009 4:18 AM, Aden Jones wrote:
> Ive got everything else working but have two tasks
> that need to be run at a certain time of the week.
Dan suggests using Java's Timer class. Lots of folks also use Quartz
(http://www.opensymphony.com/
The simplest way to do this is to learn the Timer API:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Timer.html
Then put your timer code into a new servlet that you add to your
webapp. Or add your code to an existing servlet in your webapp.
There are plenty of other open source scheduling A
Aden Jones wrote:
> Okay Iam new to Tomcat so please go easy on me.
>
> Basically I've been given an assignment that employs JSF, Hibernate and
> Tomcat as the servlet.
Tomcat is the "Servlet Container".
You write or add Servlets to it.
> Ive got everything else working but have two tasks
> tha