hi,

for scheduled job operations (method invocation), jdk 1.3 has two APIs. The 
Timer and TimerTask under java.util package.

Together, they work perfectly for schduling any job, start at specific time 
and/ or repeated in regular intervals.

please check.

jeyaraj
>From: Andr�_Schneider <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: JRun-Talk <[EMAIL PROTECTED]>
>Subject: AW: Java
>Date: Tue, 9 Jul 2002 18:47:44 +0200
>
>hi there,
>try it with jdring
>you can get the package under http://webtools.dyade.fr/jdring/
>sample_code :
>
>import fr.dyade.jdring.*;
>
>public class CLASS extends HttpServlet
>{
>       public void init()
>       {
>               AlarmManager mgr = new AlarmManager();
>               try
>               {
>                       // every day at 4:40 AM
>                       //                  miute  houre         day
>month  day_of_week  year
>                       //mgr.addAlarm( 30    ,4     , -1 , -1    ,-1
>,-1  , new AlarmListener()
>                       //or
>                       //for every 60 minutes
>                       mgr.addAlarm(60, true, new AlarmListener()
>                       {
>                               public void handleAlarm(AlarmEntry
>entry)
>                               {
>                                       try
>                                       {
>                                               CLASS_TO_RUN
>CLASS_TO_RUN = new CLASS_TO_RUN();
>
>CLASS_TO_RUN.doSomething();
>                                       }
>                                       catch(Exception ex)
>                                       {}
>                               }
>                       });
>               }
>               catch(fr.dyade.jdring.PastDateException pE)
>               {}
>       }
>
>       protected doGet(  ... )
>       {...}
>}
>
>cu
>
>Andre
>
>
>-----Urspr�ngliche Nachricht-----
>Von: Kannaiyan P [mailto:[EMAIL PROTECTED]]
>Gesendet: Dienstag, 9. Juli 2002 18:24
>An: JRun-Talk
>Betreff: Java
>
>
>Hi
>
>   I have java application running on jrun application server 3.1 .
>   java program is a Singleton(instance)class on the server. it always
>running on the server. my question is i want to call
>   to run(call) one of the method on the java program automatically at
>particular time.
>   please give some suggestion or if you have any sample code that would
>be
>very helpful for me.
>
>Thanks
>kans
>
>
>
>From: "Haseltine, Celeste" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: JRun-Talk <[EMAIL PROTECTED]>
>Subject: RE: Jrun 3.1 Cache HELP!!!
>Date: Fri, 28 Jun 2002 11:57:45 -0500
>
>Michael,
>
>You have restart the JRUN 3.1 server in order for your Java class bean
>revisions to become available to your application.  Unlike changes to
>your
>JSP's and servlets, where JRUN for the most part can "sense" that a JSP
>or
>servlet has been changed and recompile/reload it on the fly, your Java
>beans
>are loaded into server memory the first time they are called, and remain
>in
>memory until you reboot JRUN3.1.
>
>By the way, it is my understanding that this is no longer the case in
>JRUN
>4.0.
>
>Celeste
>
>-----Original Message-----
>From: Boogie Brown [mailto:[EMAIL PROTECTED]]
>Sent: Friday, June 28, 2002 11:55 AM
>To: JRun-Talk
>Subject: Jrun 3.1 Cache HELP!!!
>
>
>To whom it may concern:
>
>I am referencing a bean  in Jrun 3.1 as shown below:
><jsp:useBean id="NewContent" class="setUpNewContentBean" scope="page">
></jsp:useBean>
>
>however whenever I recompile the bean I am unable to see the updated
>results
>
>of my bean.
>
>Please help. . .
>
>Thanks in advance.
>Michael
>
>
>
>
>
>
>
>
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to