Re: Scheduler

2003-12-02 Thread Joe Germuska
On Dec 2, 2003, at 8:58 AM, Paananen, Tero wrote:

Any help will be of great use.
Use Quartz. It's a very nice app, though might
be a little overkill for your current requirements.
If you choose to use Quartz, you may be interested in some utility 
libraries that we cooked up: jgs-quartz, which basically just provides 
an XML configuration, and a QuartzPlugIn which makes it easy to 
bootstrap from that XML configuration into a Quartz processor running 
in your webapp (in jgs-struts)

http://demo.jgsullivan.com/quartz/
http://demo.jgsullivan.com/struts/
Joe

--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
 "We want beef in dessert if we can get it there."
  -- Betty Hogan, Director of New Product Development, National 
Cattlemen's Beef Association




smime.p7s
Description: S/MIME cryptographic signature


RE: Scheduler

2003-12-02 Thread Turansky, Mark
I agree, leave all the web specific stuff out of it.

I wrote a little program that ran on a timer and broke it down into two simple 
classes.  One class does the actual work, the other class wraps the first one and 
implements the Struts Plug-In and Runnable interfaces.  Simple, easy.  

Putting the business logic into a non-web related object makes it reusable and 
malleable.  The wrapper class is simply used as an invocation mechanism by the web 
container that calls the first object (which is the real program).  I don't think I 
could have made it any simpler.

http://www.c2.com/cgi/wiki?DoTheSimplestThingThatCouldPossiblyWork


-Original Message-
From: EL AKARI Mehdi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 9:07 AM
To: Struts Users Mailing List
Subject: Re: Scheduler



Hi all,

In my opinion, an application that should do the job you specified has
nothing to do with struts.
I think that it should be developpend independently of the struts one (wich
is essencially designed for a web UI).
Off course you can plugg your application to the struts one (so as it coud
start and stop with a single command) but this should not be mandatory (if
you design well your application arcitecture).
isn't it?

Mehdi.

Ps: Think of the "Time" and "TimerTask" classes wich provide the nessessary
tools for scheduling thousands of tasks concurrently.


- Original Message - 
From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]: "Struts Users Mailing
List" <[EMAIL PROTECTED]: Tuesday, December 02, 2003 11:47
AM
Subject: Scheduler

hi All
I
 want to implement a scheduler program something at the starting of the
application or at the starting of tomcat.
Basically i need one of my program to track all of the reminders i have set
in an web-application.
Say if i have set a reminder to send an email to client at 1400 hrs then it
should send that email at that time without the need of signing into the
account.
Any help will be of great use.
Thanks
Gary


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


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



RE: Scheduler

2003-12-02 Thread Paananen, Tero
> Any help will be of great use.

Use Quartz. It's a very nice app, though might
be a little overkill for your current requirements.

-TPP

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


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



RE: Scheduler

2003-12-02 Thread vellosa

Yeah that is what we ended up doing, wrapping Quartz in a JMX bean. We had a 
consultant come in and convert half our system into JMX beans. Wasn't too impressed at 
first, but as time has gone by I'm becoming more and more impressed with it.

>  from:"Nicholson, Robb" <[EMAIL PROTECTED]>
>  date:Tue, 02 Dec 2003 13:54:47
>  to:      [EMAIL PROTECTED]
>  subject: RE: Scheduler
> 
> Seems like the easiest way might be to write a JMX MBean and deploy that
> thing in a J2EE server, like JBoss. Have that thing start a thread that
> checks alerts every so often and then when required, send the alert. Then it
> runs when the server starts up without a lot of manual work-arounds and
> hacks. 
> 
> -Original Message-
> From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 02, 2003 6:47 AM
> To: Struts Users Mailing List
> Subject: Scheduler
> 
> 
> hi All
> 
> 
> I want to implement a scheduler program something at the starting of the
> application or at the starting of tomcat.
> 
> Basically i need one of my program to track all of the reminders i have set
> in an web-application.
> 
> Say if i have set a reminder to send an email to client at 1400 hrs then it
> should send that email at that time without the need of signing into the
> account.
> 
> 
> 
> Any help will be of great use.
> 
> 
> Thanks
> Gary
> 



http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21&placement=home_multi.gif&site=amazon

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



Re: Scheduler

2003-12-02 Thread EL AKARI Mehdi

Hi all,

In my opinion, an application that should do the job you specified has
nothing to do with struts.
I think that it should be developpend independently of the struts one (wich
is essencially designed for a web UI).
Off course you can plugg your application to the struts one (so as it coud
start and stop with a single command) but this should not be mandatory (if
you design well your application arcitecture).
isn't it?

Mehdi.

Ps: Think of the "Time" and "TimerTask" classes wich provide the nessessary
tools for scheduling thousands of tasks concurrently.


- Original Message - 
From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]: "Struts Users Mailing
List" <[EMAIL PROTECTED]: Tuesday, December 02, 2003 11:47
AM
Subject: Scheduler

hi All
I
 want to implement a scheduler program something at the starting of the
application or at the starting of tomcat.
Basically i need one of my program to track all of the reminders i have set
in an web-application.
Say if i have set a reminder to send an email to client at 1400 hrs then it
should send that email at that time without the need of signing into the
account.
Any help will be of great use.
Thanks
Gary


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



RE: Scheduler

2003-12-02 Thread Nicholson, Robb
Seems like the easiest way might be to write a JMX MBean and deploy that
thing in a J2EE server, like JBoss. Have that thing start a thread that
checks alerts every so often and then when required, send the alert. Then it
runs when the server starts up without a lot of manual work-arounds and
hacks. 

-Original Message-
From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 6:47 AM
To: Struts Users Mailing List
Subject: Scheduler


hi All


I want to implement a scheduler program something at the starting of the
application or at the starting of tomcat.

Basically i need one of my program to track all of the reminders i have set
in an web-application.

Say if i have set a reminder to send an email to client at 1400 hrs then it
should send that email at that time without the need of signing into the
account.



Any help will be of great use.


Thanks
Gary



Re: Scheduler

2003-12-02 Thread HG
Hi srinivas

Nice, clean solutionAdoptable for sure..

Thanx,

Henrik


- Original Message - 
From: "chekuri raju" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 02, 2003 2:50 PM
Subject: Re: Scheduler


>
> Hi All,
>
> we are using a simple servlet which acts as a scheduler. in its init() we
get the at what time to execute from props file and call
java.util.Timer.schedule() in it.the schedule() takes an object(which
implements java.util.TimerTask) as parameter
>
> regards
>
> srinivas
>
>
>
>
>
>
>
>
>
> -
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now


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



Re: Scheduler

2003-12-02 Thread chekuri raju

Hi All,

we are using a simple servlet which acts as a scheduler. in its init() we get the at 
what time to execute from props file and call java.util.Timer.schedule() in it.the 
schedule() takes an object(which implements java.util.TimerTask) as parameter  

regards

srinivas

 

 

 



-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

RE: Scheduler

2003-12-02 Thread Prabhat Kumar (IT)
jcrontab is misspelled as jcontab.

http://jcrontab.sourceforge.net/index.shtml

-Original Message-
From: Markus [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 8:28 AM
To: Struts Users Mailing List
Subject: RE: Scheduler


Hi,

I've tried to find Jcontab on but it doesn't exist!
Could you correct the address, please.

Regards,
Markus
> There are also Jcontab -> jcontab.sf.net
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 02, 2003 8:02 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Scheduler
> 
> 
> 
> We are using an open source project called Quartz, available on source
> forge, for this kind of thing. It has been working really well here. We
> register classes with a cron style timer and at the given times the
> registered class is called back.
> 
> There is also mention in the documentation about how this works in
> containers and how the specs are not violated.
> 
> regrds
> IV
> 
> 
> >  from:Gurpreet Dhanoa <[EMAIL PROTECTED]>
> >  date:Tue, 02 Dec 2003 12:15:16
> >  to:  [EMAIL PROTECTED]
> >  subject: Re: Scheduler
> > 
> > Hi HG
> > 
> > I will surely share the sucess after sucessfully implementing it.
> > Understand the value of this mailing list.
> > Dont wory dude.
> > 
> > Thanks for help
> > 
> > Cheers
> > gary
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > - Original Message -
> > From: "HG" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 02, 2003 5:38 PM
> > Subject: Re: Scheduler
> > 
> > 
> > > Please share your success with the rest of us...
> > >
> > > I am in need of similar functionality...very soon...
> > >
> > > - Original Message -
> > > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, December 02, 2003 1:04 PM
> > > Subject: Re: Scheduler
> > >
> > >
> > > > hi HG
> > > >
> > > > Thanks for the thought i have found the path tomove on. Hope it may
> work
> > > > out. Anyway thread problem is related to EJB Container as such strut
> > > allows
> > > > one to use Thread
> > > >
> > > > Thanks
> > > > Gary
> > > > - Original Message -
> > > > From: "HG" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, December 02, 2003 5:26 PM
> > > > Subject: Re: Scheduler
> > > >
> > > >
> > > > > Hi Gurpreet
> > > > >
> > > > > I haven't tried this...but it came across my mind as I need
> something
> > > > > similar very soon.
> > > > >
> > > > > You could write a Struts plugin... init() method called on start
> of
> > > webapp
> > > > > and destroy() method called on shutdown of webapp.
> > > > >
> > > > > In the init() method you could start a thread that "wakes up" at
> > > specified
> > > > > interval, say each minute, to check if there is some tasks that
> need
> > to
> > > be
> > > > > done, eg sending mails, cleaning up, make some coffee (;-))
> > > > >
> > > > > In the destroy method you could stop the thread again
> > > > >
> > > > > I don't know if this violates with the J2EE spec...I remember
> reading
> > > > > something about threads...but that might be for EJBs only...Anyone
> can
> > > > shed
> > > > > some light on this issue?
> > > > >
> > > > > Regards
> > > > >
> > > > > Henrik
> > > > >
> > > > > - Original Message -
> > > > > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, December 02, 2003 12:47 PM
> > > > > Subject: Scheduler
> > > > >
> > > > >
> > > > > hi All
> > > > >
> > > > >
> > > > >

RE: Scheduler

2003-12-02 Thread Jimmy Emmanual
sorry here is the correct link:

http://jcrontab.sourceforge.net/index.shtml

by the way, just took a look at quartz... very cool...

http://www.quartzscheduler.org/index.jsp

-Original Message-
From: Markus [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 8:28 AM
To: Struts Users Mailing List
Subject: RE: Scheduler


Hi,

I've tried to find Jcontab on but it doesn't exist!
Could you correct the address, please.

Regards,
Markus
> There are also Jcontab -> jcontab.sf.net
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 02, 2003 8:02 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Scheduler
> 
> 
> 
> We are using an open source project called Quartz, available on source
> forge, for this kind of thing. It has been working really well here. We
> register classes with a cron style timer and at the given times the
> registered class is called back.
> 
> There is also mention in the documentation about how this works in
> containers and how the specs are not violated.
> 
> regrds
> IV
> 
> 
> >  from:Gurpreet Dhanoa <[EMAIL PROTECTED]>
> >  date:Tue, 02 Dec 2003 12:15:16
> >  to:  [EMAIL PROTECTED]
> >  subject: Re: Scheduler
> > 
> > Hi HG
> > 
> > I will surely share the sucess after sucessfully implementing it.
> > Understand the value of this mailing list.
> > Dont wory dude.
> > 
> > Thanks for help
> > 
> > Cheers
> > gary
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > - Original Message -
> > From: "HG" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 02, 2003 5:38 PM
> > Subject: Re: Scheduler
> > 
> > 
> > > Please share your success with the rest of us...
> > >
> > > I am in need of similar functionality...very soon...
> > >
> > > - Original Message -
> > > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, December 02, 2003 1:04 PM
> > > Subject: Re: Scheduler
> > >
> > >
> > > > hi HG
> > > >
> > > > Thanks for the thought i have found the path tomove on. Hope it may
> work
> > > > out. Anyway thread problem is related to EJB Container as such strut
> > > allows
> > > > one to use Thread
> > > >
> > > > Thanks
> > > > Gary
> > > > - Original Message -
> > > > From: "HG" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, December 02, 2003 5:26 PM
> > > > Subject: Re: Scheduler
> > > >
> > > >
> > > > > Hi Gurpreet
> > > > >
> > > > > I haven't tried this...but it came across my mind as I need
> something
> > > > > similar very soon.
> > > > >
> > > > > You could write a Struts plugin... init() method called on start
> of
> > > webapp
> > > > > and destroy() method called on shutdown of webapp.
> > > > >
> > > > > In the init() method you could start a thread that "wakes up" at
> > > specified
> > > > > interval, say each minute, to check if there is some tasks that
> need
> > to
> > > be
> > > > > done, eg sending mails, cleaning up, make some coffee (;-))
> > > > >
> > > > > In the destroy method you could stop the thread again
> > > > >
> > > > > I don't know if this violates with the J2EE spec...I remember
> reading
> > > > > something about threads...but that might be for EJBs only...Anyone
> can
> > > > shed
> > > > > some light on this issue?
> > > > >
> > > > > Regards
> > > > >
> > > > > Henrik
> > > > >
> > > > > - Original Message -
> > > > > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, December 02, 2003 12:47 PM
> > > > > Subject: Scheduler
> > > > >
> > > > >
> > > > > hi All
> > > > >
> > > > >

RE: Scheduler

2003-12-02 Thread Markus
Hi,

I've tried to find Jcontab on but it doesn't exist!
Could you correct the address, please.

Regards,
Markus
> There are also Jcontab -> jcontab.sf.net
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 02, 2003 8:02 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Scheduler
> 
> 
> 
> We are using an open source project called Quartz, available on source
> forge, for this kind of thing. It has been working really well here. We
> register classes with a cron style timer and at the given times the
> registered class is called back.
> 
> There is also mention in the documentation about how this works in
> containers and how the specs are not violated.
> 
> regrds
> IV
> 
> 
> >  from:Gurpreet Dhanoa <[EMAIL PROTECTED]>
> >  date:Tue, 02 Dec 2003 12:15:16
> >  to:  [EMAIL PROTECTED]
> >  subject: Re: Scheduler
> > 
> > Hi HG
> > 
> > I will surely share the sucess after sucessfully implementing it.
> > Understand the value of this mailing list.
> > Dont wory dude.
> > 
> > Thanks for help
> > 
> > Cheers
> > gary
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > - Original Message -
> > From: "HG" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 02, 2003 5:38 PM
> > Subject: Re: Scheduler
> > 
> > 
> > > Please share your success with the rest of us...
> > >
> > > I am in need of similar functionality...very soon...
> > >
> > > - Original Message -
> > > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, December 02, 2003 1:04 PM
> > > Subject: Re: Scheduler
> > >
> > >
> > > > hi HG
> > > >
> > > > Thanks for the thought i have found the path tomove on. Hope it may
> work
> > > > out. Anyway thread problem is related to EJB Container as such strut
> > > allows
> > > > one to use Thread
> > > >
> > > > Thanks
> > > > Gary
> > > > - Original Message -
> > > > From: "HG" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, December 02, 2003 5:26 PM
> > > > Subject: Re: Scheduler
> > > >
> > > >
> > > > > Hi Gurpreet
> > > > >
> > > > > I haven't tried this...but it came across my mind as I need
> something
> > > > > similar very soon.
> > > > >
> > > > > You could write a Struts plugin... init() method called on start
> of
> > > webapp
> > > > > and destroy() method called on shutdown of webapp.
> > > > >
> > > > > In the init() method you could start a thread that "wakes up" at
> > > specified
> > > > > interval, say each minute, to check if there is some tasks that
> need
> > to
> > > be
> > > > > done, eg sending mails, cleaning up, make some coffee (;-))
> > > > >
> > > > > In the destroy method you could stop the thread again
> > > > >
> > > > > I don't know if this violates with the J2EE spec...I remember
> reading
> > > > > something about threads...but that might be for EJBs only...Anyone
> can
> > > > shed
> > > > > some light on this issue?
> > > > >
> > > > > Regards
> > > > >
> > > > > Henrik
> > > > >
> > > > > - Original Message -
> > > > > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, December 02, 2003 12:47 PM
> > > > > Subject: Scheduler
> > > > >
> > > > >
> > > > > hi All
> > > > >
> > > > >
> > > > > I want to implement a scheduler program something at the starting
> of
> > the
> > > > > application or at the starting of tomcat.
> > > > >
> > > > > Basically i need one of my program to track all of the reminders i
> > have
> > > > set
>

RE: Scheduler

2003-12-02 Thread Jimmy Emmanual
There are also Jcontab -> jcontab.sf.net


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 8:02 AM
To: [EMAIL PROTECTED]
Subject: Re: Scheduler



We are using an open source project called Quartz, available on source
forge, for this kind of thing. It has been working really well here. We
register classes with a cron style timer and at the given times the
registered class is called back.

There is also mention in the documentation about how this works in
containers and how the specs are not violated.

regrds
IV


>  from:Gurpreet Dhanoa <[EMAIL PROTECTED]>
>  date:Tue, 02 Dec 2003 12:15:16
>  to:  [EMAIL PROTECTED]
>  subject: Re: Scheduler
> 
> Hi HG
> 
> I will surely share the sucess after sucessfully implementing it.
> Understand the value of this mailing list.
> Dont wory dude.
> 
> Thanks for help
> 
> Cheers
> gary
> 
> 
> 
> 
> 
> 
> 
> - Original Message -
> From: "HG" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, December 02, 2003 5:38 PM
> Subject: Re: Scheduler
> 
> 
> > Please share your success with the rest of us...
> >
> > I am in need of similar functionality...very soon...
> >
> > - Original Message -
> > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 02, 2003 1:04 PM
> > Subject: Re: Scheduler
> >
> >
> > > hi HG
> > >
> > > Thanks for the thought i have found the path tomove on. Hope it may
work
> > > out. Anyway thread problem is related to EJB Container as such strut
> > allows
> > > one to use Thread
> > >
> > > Thanks
> > > Gary
> > > - Original Message -
> > > From: "HG" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, December 02, 2003 5:26 PM
> > > Subject: Re: Scheduler
> > >
> > >
> > > > Hi Gurpreet
> > > >
> > > > I haven't tried this...but it came across my mind as I need
something
> > > > similar very soon.
> > > >
> > > > You could write a Struts plugin... init() method called on start of
> > webapp
> > > > and destroy() method called on shutdown of webapp.
> > > >
> > > > In the init() method you could start a thread that "wakes up" at
> > specified
> > > > interval, say each minute, to check if there is some tasks that need
> to
> > be
> > > > done, eg sending mails, cleaning up, make some coffee (;-))
> > > >
> > > > In the destroy method you could stop the thread again
> > > >
> > > > I don't know if this violates with the J2EE spec...I remember
reading
> > > > something about threads...but that might be for EJBs only...Anyone
can
> > > shed
> > > > some light on this issue?
> > > >
> > > > Regards
> > > >
> > > > Henrik
> > > >
> > > > - Original Message -
> > > > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, December 02, 2003 12:47 PM
> > > > Subject: Scheduler
> > > >
> > > >
> > > > hi All
> > > >
> > > >
> > > > I want to implement a scheduler program something at the starting of
> the
> > > > application or at the starting of tomcat.
> > > >
> > > > Basically i need one of my program to track all of the reminders i
> have
> > > set
> > > > in an web-application.
> > > >
> > > > Say if i have set a reminder to send an email to client at 1400 hrs
> then
> > > it
> > > > should send that email at that time without the need of signing into
> the
> > > > account.
> > > >
> > > >
> > > >
> > > > Any help will be of great use.
> > > >
> > > >
> > > > Thanks
> > > > Gary
> > > >
> > > >
> > > >
> > > >
-
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21&placemen
t=home_multi.gif&site=amazon

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

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



Re: Scheduler

2003-12-02 Thread vellosa

We are using an open source project called Quartz, available on source forge, for this 
kind of thing. It has been working really well here. We register classes with a cron 
style timer and at the given times the registered class is called back.

There is also mention in the documentation about how this works in containers and how 
the specs are not violated.

regrds
IV


>  from:Gurpreet Dhanoa <[EMAIL PROTECTED]>
>  date:Tue, 02 Dec 2003 12:15:16
>  to:  [EMAIL PROTECTED]
>  subject: Re: Scheduler
> 
> Hi HG
> 
> I will surely share the sucess after sucessfully implementing it.
> Understand the value of this mailing list.
> Dont wory dude.
> 
> Thanks for help
> 
> Cheers
> gary
> 
> 
> 
> 
> 
> 
> 
> - Original Message -
> From: "HG" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, December 02, 2003 5:38 PM
> Subject: Re: Scheduler
> 
> 
> > Please share your success with the rest of us...
> >
> > I am in need of similar functionality...very soon...
> >
> > - Original Message -
> > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 02, 2003 1:04 PM
> > Subject: Re: Scheduler
> >
> >
> > > hi HG
> > >
> > > Thanks for the thought i have found the path tomove on. Hope it may work
> > > out. Anyway thread problem is related to EJB Container as such strut
> > allows
> > > one to use Thread
> > >
> > > Thanks
> > > Gary
> > > - Original Message -
> > > From: "HG" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, December 02, 2003 5:26 PM
> > > Subject: Re: Scheduler
> > >
> > >
> > > > Hi Gurpreet
> > > >
> > > > I haven't tried this...but it came across my mind as I need something
> > > > similar very soon.
> > > >
> > > > You could write a Struts plugin... init() method called on start of
> > webapp
> > > > and destroy() method called on shutdown of webapp.
> > > >
> > > > In the init() method you could start a thread that "wakes up" at
> > specified
> > > > interval, say each minute, to check if there is some tasks that need
> to
> > be
> > > > done, eg sending mails, cleaning up, make some coffee (;-))
> > > >
> > > > In the destroy method you could stop the thread again
> > > >
> > > > I don't know if this violates with the J2EE spec...I remember reading
> > > > something about threads...but that might be for EJBs only...Anyone can
> > > shed
> > > > some light on this issue?
> > > >
> > > > Regards
> > > >
> > > > Henrik
> > > >
> > > > - Original Message -
> > > > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, December 02, 2003 12:47 PM
> > > > Subject: Scheduler
> > > >
> > > >
> > > > hi All
> > > >
> > > >
> > > > I want to implement a scheduler program something at the starting of
> the
> > > > application or at the starting of tomcat.
> > > >
> > > > Basically i need one of my program to track all of the reminders i
> have
> > > set
> > > > in an web-application.
> > > >
> > > > Say if i have set a reminder to send an email to client at 1400 hrs
> then
> > > it
> > > > should send that email at that time without the need of signing into
> the
> > > > account.
> > > >
> > > >
> > > >
> > > > Any help will be of great use.
> > > >
> > > >
> > > > Thanks
> > > > Gary
> > > >
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21&placement=home_multi.gif&site=amazon

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



Re: Scheduler

2003-12-02 Thread Gurpreet Dhanoa
Hi HG

I will surely share the sucess after sucessfully implementing it.
Understand the value of this mailing list.
Dont wory dude.

Thanks for help

Cheers
gary







- Original Message -
From: "HG" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 02, 2003 5:38 PM
Subject: Re: Scheduler


> Please share your success with the rest of us...
>
> I am in need of similar functionality...very soon...
>
> - Original Message -
> From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, December 02, 2003 1:04 PM
> Subject: Re: Scheduler
>
>
> > hi HG
> >
> > Thanks for the thought i have found the path tomove on. Hope it may work
> > out. Anyway thread problem is related to EJB Container as such strut
> allows
> > one to use Thread
> >
> > Thanks
> > Gary
> > - Original Message -----
> > From: "HG" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 02, 2003 5:26 PM
> > Subject: Re: Scheduler
> >
> >
> > > Hi Gurpreet
> > >
> > > I haven't tried this...but it came across my mind as I need something
> > > similar very soon.
> > >
> > > You could write a Struts plugin... init() method called on start of
> webapp
> > > and destroy() method called on shutdown of webapp.
> > >
> > > In the init() method you could start a thread that "wakes up" at
> specified
> > > interval, say each minute, to check if there is some tasks that need
to
> be
> > > done, eg sending mails, cleaning up, make some coffee (;-))
> > >
> > > In the destroy method you could stop the thread again
> > >
> > > I don't know if this violates with the J2EE spec...I remember reading
> > > something about threads...but that might be for EJBs only...Anyone can
> > shed
> > > some light on this issue?
> > >
> > > Regards
> > >
> > > Henrik
> > >
> > > - Original Message -
> > > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, December 02, 2003 12:47 PM
> > > Subject: Scheduler
> > >
> > >
> > > hi All
> > >
> > >
> > > I want to implement a scheduler program something at the starting of
the
> > > application or at the starting of tomcat.
> > >
> > > Basically i need one of my program to track all of the reminders i
have
> > set
> > > in an web-application.
> > >
> > > Say if i have set a reminder to send an email to client at 1400 hrs
then
> > it
> > > should send that email at that time without the need of signing into
the
> > > account.
> > >
> > >
> > >
> > > Any help will be of great use.
> > >
> > >
> > > Thanks
> > > Gary
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: Scheduler

2003-12-02 Thread HG
Please share your success with the rest of us...

I am in need of similar functionality...very soon...

- Original Message - 
From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 02, 2003 1:04 PM
Subject: Re: Scheduler


> hi HG
>
> Thanks for the thought i have found the path tomove on. Hope it may work
> out. Anyway thread problem is related to EJB Container as such strut
allows
> one to use Thread
>
> Thanks
> Gary
> - Original Message -
> From: "HG" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, December 02, 2003 5:26 PM
> Subject: Re: Scheduler
>
>
> > Hi Gurpreet
> >
> > I haven't tried this...but it came across my mind as I need something
> > similar very soon.
> >
> > You could write a Struts plugin... init() method called on start of
webapp
> > and destroy() method called on shutdown of webapp.
> >
> > In the init() method you could start a thread that "wakes up" at
specified
> > interval, say each minute, to check if there is some tasks that need to
be
> > done, eg sending mails, cleaning up, make some coffee (;-))
> >
> > In the destroy method you could stop the thread again
> >
> > I don't know if this violates with the J2EE spec...I remember reading
> > something about threads...but that might be for EJBs only...Anyone can
> shed
> > some light on this issue?
> >
> > Regards
> >
> > Henrik
> >
> > - Original Message -
> > From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 02, 2003 12:47 PM
> > Subject: Scheduler
> >
> >
> > hi All
> >
> >
> > I want to implement a scheduler program something at the starting of the
> > application or at the starting of tomcat.
> >
> > Basically i need one of my program to track all of the reminders i have
> set
> > in an web-application.
> >
> > Say if i have set a reminder to send an email to client at 1400 hrs then
> it
> > should send that email at that time without the need of signing into the
> > account.
> >
> >
> >
> > Any help will be of great use.
> >
> >
> > Thanks
> > Gary
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: Scheduler

2003-12-02 Thread Gurpreet Dhanoa
hi HG

Thanks for the thought i have found the path tomove on. Hope it may work
out. Anyway thread problem is related to EJB Container as such strut allows
one to use Thread

Thanks
Gary
- Original Message -
From: "HG" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 02, 2003 5:26 PM
Subject: Re: Scheduler


> Hi Gurpreet
>
> I haven't tried this...but it came across my mind as I need something
> similar very soon.
>
> You could write a Struts plugin... init() method called on start of webapp
> and destroy() method called on shutdown of webapp.
>
> In the init() method you could start a thread that "wakes up" at specified
> interval, say each minute, to check if there is some tasks that need to be
> done, eg sending mails, cleaning up, make some coffee (;-))
>
> In the destroy method you could stop the thread again
>
> I don't know if this violates with the J2EE spec...I remember reading
> something about threads...but that might be for EJBs only...Anyone can
shed
> some light on this issue?
>
> Regards
>
> Henrik
>
> - Original Message -
> From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, December 02, 2003 12:47 PM
> Subject: Scheduler
>
>
> hi All
>
>
> I want to implement a scheduler program something at the starting of the
> application or at the starting of tomcat.
>
> Basically i need one of my program to track all of the reminders i have
set
> in an web-application.
>
> Say if i have set a reminder to send an email to client at 1400 hrs then
it
> should send that email at that time without the need of signing into the
> account.
>
>
>
> Any help will be of great use.
>
>
> Thanks
> Gary
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: Scheduler

2003-12-02 Thread HG
Hi Gurpreet

I haven't tried this...but it came across my mind as I need something
similar very soon.

You could write a Struts plugin... init() method called on start of webapp
and destroy() method called on shutdown of webapp.

In the init() method you could start a thread that "wakes up" at specified
interval, say each minute, to check if there is some tasks that need to be
done, eg sending mails, cleaning up, make some coffee (;-))

In the destroy method you could stop the thread again

I don't know if this violates with the J2EE spec...I remember reading
something about threads...but that might be for EJBs only...Anyone can shed
some light on this issue?

Regards

Henrik

- Original Message - 
From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 02, 2003 12:47 PM
Subject: Scheduler


hi All


I want to implement a scheduler program something at the starting of the
application or at the starting of tomcat.

Basically i need one of my program to track all of the reminders i have set
in an web-application.

Say if i have set a reminder to send an email to client at 1400 hrs then it
should send that email at that time without the need of signing into the
account.



Any help will be of great use.


Thanks
Gary



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