You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gurpreet Dhanoa <gu...@smartdatainc.com> on 2003/12/02 12:47:19 UTC
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
Posted by Gurpreet Dhanoa <gu...@smartdatainc.com>.
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" <st...@websolver.dk>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
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" <gu...@smartdatainc.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> 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" <st...@websolver.dk>
> > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > 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" <gu...@smartdatainc.com>
> > > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > > 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: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Scheduler
Posted by HG <st...@nospam.websolver.dk>.
Please share your success with the rest of us...
I am in need of similar functionality...very soon...
----- Original Message -----
From: "Gurpreet Dhanoa" <gu...@smartdatainc.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
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" <st...@websolver.dk>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> 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" <gu...@smartdatainc.com>
> > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > 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: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Scheduler
Posted by Gurpreet Dhanoa <gu...@smartdatainc.com>.
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" <st...@websolver.dk>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
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" <gu...@smartdatainc.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Scheduler
Posted by HG <st...@nospam.websolver.dk>.
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" <gu...@smartdatainc.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org