Scheduler

2003-12-02 Thread Gurpreet Dhanoa
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 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]



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
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

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 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 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 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
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 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 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 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 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 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 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 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 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 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


PlugIn Scheduler

2003-12-09 Thread Gurpreet Dhanoa
hi 

I have created the following plug-in and using it into my  application. The problem 
which I am facing is when I am running tomcat. The plug -in is not starting. The basic 
idea behind this plugin is to start a thread and peform some logic after some interval 
of time.

ANy suggestions will be of great help.

Following is the code for Plugin Class and the struts-config.xml


PlugTest.java
package efit;

import java.io.PrintStream;

import javax.servlet.ServletException;

import org.apache.struts.action.ActionServlet;

import org.apache.struts.action.PlugIn;

import org.apache.struts.config.ApplicationConfig;

public class PluginTest

implements PlugIn, Runnable

{

public PluginTest()

{

t = null;

}

public void init(ActionServlet servlet, ApplicationConfig applicationConfig)

throws ServletException

{

System.out.println("The Plugin is starting");

t = new Thread(this);

t.start();

}

public void destroy()

{

System.err.println("\u2212\u2212\u2212\u2212>The Plugin is 
stopping<\u2212\u2212\u2212\u2212");

}

public void run()

{

do

{

System.out.println("Plugin is Running");

try

{

Thread.sleep(1000L);

}

catch(Exception t)

{

System.out.println("Exception in Thread" + t.getMessage());

}

} while(true);

}

Thread t;

}





in the Struts-config.xml I m using the plugin usiong the following tag





Thanks

Gary



designing simple scheduler

2003-12-08 Thread Raman
Hello,

I am using struts/beans  in my application. I want a scheduler kind of thing that 
after regular interval of time should check the db and send mails.
I want some suggestions regarding running it on red hat linux and way to go for this.

Cheers,
Raman Garg

Re: PlugIn Scheduler

2003-12-09 Thread Gurpreet Dhanoa
hi ALl

It worked perfectly fine. Soon i will be posting the code for all of the
buddies so that they can use it into there application.


- Original Message -
From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 10, 2003 11:24 AM
Subject: PlugIn Scheduler


hi

I have created the following plug-in and using it into my  application. The
problem which I am facing is when I am running tomcat. The plug -in is not
starting. The basic idea behind this plugin is to start a thread and peform
some logic after some interval of time.

ANy suggestions will be of great help.

Following is the code for Plugin Class and the struts-config.xml


PlugTest.java
package efit;

import java.io.PrintStream;

import javax.servlet.ServletException;

import org.apache.struts.action.ActionServlet;

import org.apache.struts.action.PlugIn;

import org.apache.struts.config.ApplicationConfig;

public class PluginTest

implements PlugIn, Runnable

{

public PluginTest()

{

t = null;

}

public void init(ActionServlet servlet, ApplicationConfig applicationConfig)

throws ServletException

{

System.out.println("The Plugin is starting");

t = new Thread(this);

t.start();

}

public void destroy()

{

System.err.println("\u2212\u2212\u2212\u2212>The Plugin is
stopping<\u2212\u2212\u2212\u2212");

}

public void run()

{

do

{

System.out.println("Plugin is Running");

try

{

Thread.sleep(1000L);

}

catch(Exception t)

{

System.out.println("Exception in Thread" + t.getMessage());

}

} while(true);

}

Thread t;

}





in the Struts-config.xml I m using the plugin usiong the following tag





Thanks

Gary


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



RE: PlugIn Scheduler

2003-12-10 Thread Trieu, Danny
Huh,

I don't know if managing your own Thread is recommended by container. Is
there another way around this? Like JMX or implement the service action and
have a Demom periodically ping that service action to execute the intense
action?

-danny

Danny Trieu 
Internet Business Group 
Downey Savings and Loan Association, F.A. 
[EMAIL PROTECTED]
(949) 509-4564

"The beginning of knowledge is the discovery of something we do not
understand."
- Frank Herbert (1920-1986)
"The essence of knowledge is, having it, to apply it; not having it, to
confess your ignorance."
- Confucius (551-479 BC)




-Original Message-
From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 10:32 PM
To: Struts Users Mailing List
Subject: Re: PlugIn Scheduler


hi ALl

It worked perfectly fine. Soon i will be posting the code for all of the
buddies so that they can use it into there application.


- Original Message -
From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 10, 2003 11:24 AM
Subject: PlugIn Scheduler


hi

I have created the following plug-in and using it into my  application. The
problem which I am facing is when I am running tomcat. The plug -in is not
starting. The basic idea behind this plugin is to start a thread and peform
some logic after some interval of time.

ANy suggestions will be of great help.

Following is the code for Plugin Class and the struts-config.xml


PlugTest.java
package efit;

import java.io.PrintStream;

import javax.servlet.ServletException;

import org.apache.struts.action.ActionServlet;

import org.apache.struts.action.PlugIn;

import org.apache.struts.config.ApplicationConfig;

public class PluginTest

implements PlugIn, Runnable

{

public PluginTest()

{

t = null;

}

public void init(ActionServlet servlet, ApplicationConfig applicationConfig)

throws ServletException

{

System.out.println("The Plugin is starting");

t = new Thread(this);

t.start();

}

public void destroy()

{

System.err.println("\u2212\u2212\u2212\u2212>The Plugin is
stopping<\u2212\u2212\u2212\u2212");

}

public void run()

{

do

{

System.out.println("Plugin is Running");

try

{

Thread.sleep(1000L);

}

catch(Exception t)

{

System.out.println("Exception in Thread" + t.getMessage());

}

} while(true);

}

Thread t;

}





in the Struts-config.xml I m using the plugin usiong the following tag





Thanks

Gary


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


This message and any attachments are for the intended recipient(s) only and may 
contain privileged, confidential and/or proprietary information about Downey Savings 
or its customers, which Downey Savings does not intend to disclose to the public. If 
you received this message by mistake, please notify the sender by reply e-mail and 
delete the message and attachments.

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



Re: designing simple scheduler

2003-12-08 Thread Vic Cekvenich
With a layered MVC application you can re-use beans outside of Struts.
Have cron call beans application. I do.
.V
Raman wrote:
Hello,

I am using struts/beans  in my application. I want a scheduler kind of thing that 
after regular interval of time should check the db and send mails.
I want some suggestions regarding running it on red hat linux and way to go for this.
Cheers,
Raman Garg


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


Re: designing simple scheduler

2003-12-08 Thread Markus
Hi,

search the mail archive.
This thread was discussed about one or two weeks ago.

Regards,

Markus
> Hello,
> 
> I am using struts/beans  in my application. I want a scheduler kind of 
> thing that after regular interval of time should check the db and send 
> mails.
> I want some suggestions regarding running it on red hat linux and way to 
> go for this.
> 
> Cheers,
> Raman Garg


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



RE: designing simple scheduler

2003-12-08 Thread Voinea, Marina

 Vic, can you please explain a bit more how do you reuse your beans ? (and
have cron job call yor application - you know the idea of separating layers,
how is your architecture like now ?)

 (we would need something similar...)
Thanks,
M.

-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 6:29 AM
To: [EMAIL PROTECTED]
Subject: Re: designing simple scheduler


With a layered MVC application you can re-use beans outside of Struts.
Have cron call beans application. I do.
.V

Raman wrote:
> Hello,
> 
> I am using struts/beans  in my application. I want a scheduler kind of
thing that after regular interval of time should check the db and send
mails.
> I want some suggestions regarding running it on red hat linux and way to
go for this.
> 
> Cheers,
> Raman Garg



-
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: designing simple scheduler

2003-12-08 Thread Turansky, Mark
how to reuse beans?

You should be making your beans without any thought of the web whatsoever.  THEN your 
Actions can calls your beans.  This way, the Actions are clients of your API.  By 
having an API containing business logic (instead of business logic in your actions), 
you promote reuse.

An additional benefit of this type of bean design is that you can test it automatedly 
(JUnit!) without having Tomcat or servlet container running.

The Action, in this case, is the glue connecting all your business logic (beans).  
Replace the glue with another type of glue and you can reuse your business components 
anywhere.

-Original Message-
From: Voinea, Marina [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 9:19 AM
To: 'Struts Users Mailing List'
Subject: RE: designing simple scheduler



 Vic, can you please explain a bit more how do you reuse your beans ? (and
have cron job call yor application - you know the idea of separating layers,
how is your architecture like now ?)

 (we would need something similar...)
Thanks,
M.

-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 6:29 AM
To: [EMAIL PROTECTED]
Subject: Re: designing simple scheduler


With a layered MVC application you can re-use beans outside of Struts.
Have cron call beans application. I do.
.V

Raman wrote:
> Hello,
> 
> I am using struts/beans  in my application. I want a scheduler kind of
thing that after regular interval of time should check the db and send
mails.
> I want some suggestions regarding running it on red hat linux and way to
go for this.
> 
> Cheers,
> Raman Garg



-
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: designing simple scheduler

2003-12-08 Thread Vic Cekvenich


Turansky, Mark wrote:
how to reuse beans?

You should be making your beans without any thought of the web whatsoever.  THEN your Actions can calls your beans.  This way, the Actions are clients of your API.  By having an API containing business logic (instead of business logic in your actions), you promote reuse.

An additional benefit of this type of bean design is that you can test it automatedly (JUnit!) without having Tomcat or servlet container running.

The Action, in this case, is the glue connecting all your business logic (beans).  Replace the glue with another type of glue and you can reuse your business components anywhere.



+1
"You should be making your beans without any thought of the web whatsoever"
"An additional benefit of this type of bean design is that you can test it"
+1
And to underline the obvios Struts is MVC implementation. The 
benefit of MVC is MVC layers.

Then you can call your application (Yes, you can write console 
applications in Java, and re-use your Mail beans ) like this in bsh:
while true
do
  $JAVA_HOME/bin/java -classpath $CLASSPATH com.async.run
  sleep 100
done

Else... you did not do MVC Struts... oops.

hth,
.V





-Original Message-
From: Voinea, Marina [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 9:19 AM
To: 'Struts Users Mailing List'
Subject: RE: designing simple scheduler


 Vic, can you please explain a bit more how do you reuse your beans ? (and
have cron job call yor application - you know the idea of separating layers,
how is your architecture like now ?)
 (we would need something similar...)
Thanks,
M.
-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 6:29 AM
To: [EMAIL PROTECTED]
Subject: Re: designing simple scheduler
With a layered MVC application you can re-use beans outside of Struts.
Have cron call beans application. I do.
.V
Raman wrote:

Hello,

I am using struts/beans  in my application. I want a scheduler kind of
thing that after regular interval of time should check the db and send
mails.
I want some suggestions regarding running it on red hat linux and way to
go for this.

Cheers,
Raman Garg




-
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: designing simple scheduler

2003-12-08 Thread Voinea, Marina

yes, calling APP layer API (beans) from the UI is OK.
 I was thinking if it is possible the other way around : to somehow inform
the UI that soemthing happened on the backend and it has to display a
message accordingly. (kind of polling from UI to back end). The APP layer
bean triggering an event in UI application. Coud this be done?

-Original Message-
From: Turansky, Mark [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 9:57 AM
To: Struts Users Mailing List
Subject: RE: designing simple scheduler


how to reuse beans?

You should be making your beans without any thought of the web whatsoever.
THEN your Actions can calls your beans.  This way, the Actions are clients
of your API.  By having an API containing business logic (instead of
business logic in your actions), you promote reuse.

An additional benefit of this type of bean design is that you can test it
automatedly (JUnit!) without having Tomcat or servlet container running.

The Action, in this case, is the glue connecting all your business logic
(beans).  Replace the glue with another type of glue and you can reuse your
business components anywhere.

-Original Message-
From: Voinea, Marina [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 9:19 AM
To: 'Struts Users Mailing List'
Subject: RE: designing simple scheduler



 Vic, can you please explain a bit more how do you reuse your beans ? (and
have cron job call yor application - you know the idea of separating layers,
how is your architecture like now ?)

 (we would need something similar...)
Thanks,
M.

-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 6:29 AM
To: [EMAIL PROTECTED]
Subject: Re: designing simple scheduler


With a layered MVC application you can re-use beans outside of Struts.
Have cron call beans application. I do.
.V

Raman wrote:
> Hello,
> 
> I am using struts/beans  in my application. I want a scheduler kind of
thing that after regular interval of time should check the db and send
mails.
> I want some suggestions regarding running it on red hat linux and way to
go for this.
> 
> Cheers,
> Raman Garg



-
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: designing simple scheduler

2003-12-08 Thread Vic Cekvenich
No, no that is not what we are saying.

Just call the beans from your UI. In this case your UI is console.
Same bean that you allready tested. Struts is the fastest way to develop 
that I know (15 years of IT for me)

So your console app check the JavaMail and saves it or send it from db. 
Same beans and DB struts uses. So any mail shows up online.
Batch/async is bread and butter of DP. Online is just the icing.
.V

Voinea, Marina wrote:
yes, calling APP layer API (beans) from the UI is OK.
 I was thinking if it is possible the other way around : to somehow inform
the UI that soemthing happened on the backend and it has to display a
message accordingly. (kind of polling from UI to back end). The APP layer
bean triggering an event in UI application. Coud this be done?



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


RE: designing simple scheduler

2003-12-08 Thread Turansky, Mark
"Online is just the icing."

Right!  The business logic of the application should be UI agnostic.  The logic 
shouldn't know if it was invoked from a console application, a Swing gui app, or a web 
(Struts!) application.  The business logic is (or should be) the same.


-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic Cekvenich
Sent: Monday, December 08, 2003 10:29 AM
To: [EMAIL PROTECTED]
Subject: Re: designing simple scheduler


No, no that is not what we are saying.

Just call the beans from your UI. In this case your UI is console.
Same bean that you allready tested. Struts is the fastest way to develop 
that I know (15 years of IT for me)

So your console app check the JavaMail and saves it or send it from db. 
Same beans and DB struts uses. So any mail shows up online.
Batch/async is bread and butter of DP. Online is just the icing.
.V


Voinea, Marina wrote:
> yes, calling APP layer API (beans) from the UI is OK.
>  I was thinking if it is possible the other way around : to somehow inform
> the UI that soemthing happened on the backend and it has to display a
> message accordingly. (kind of polling from UI to back end). The APP layer
> bean triggering an event in UI application. Coud this be done?
> 
>



-
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: designing simple scheduler

2003-12-08 Thread ian_d_stewart

This probably goes without saying, but in addition to being UI agnostic,
your business logic should also be datastore agnostic.  To be truly
abstract, it should be as easy to move your backend from RDBMS to LDAP or
XML as it is to move the UI from Web to GUI to Console.


Ian



   

  "Turansky, Mark" 

  <[EMAIL PROTECTED]To:   "Struts Users Mailing List" 
<[EMAIL PROTECTED]>  
  rm.com>  cc: 

   Subject:  RE: designing simple 
scheduler
  12/08/2003 11:05 

  AM   

  Please respond to

  "Struts Users

  Mailing List"

   

   





"Online is just the icing."

Right!  The business logic of the application should be UI agnostic.  The
logic shouldn't know if it was invoked from a console application, a Swing
gui app, or a web (Struts!) application.  The business logic is (or should
be) the same.


-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic Cekvenich
Sent: Monday, December 08, 2003 10:29 AM
To: [EMAIL PROTECTED]
Subject: Re: designing simple scheduler


No, no that is not what we are saying.

Just call the beans from your UI. In this case your UI is console.
Same bean that you allready tested. Struts is the fastest way to develop
that I know (15 years of IT for me)

So your console app check the JavaMail and saves it or send it from db.
Same beans and DB struts uses. So any mail shows up online.
Batch/async is bread and butter of DP. Online is just the icing.
.V


Voinea, Marina wrote:
> yes, calling APP layer API (beans) from the UI is OK.
>  I was thinking if it is possible the other way around : to somehow
inform
> the UI that soemthing happened on the backend and it has to display a
> message accordingly. (kind of polling from UI to back end). The APP layer
> bean triggering an event in UI application. Coud this be done?
>
>



-
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]







This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you.


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



job scheduler with struts

2001-02-25 Thread Mihir Parekh

We need to implement a job scheduler (similar to unix cron job). Is
there a open source schedule which can be used with struts?  Any
pointers on implementing servlet based scheduler?

Thanks,
Mihir




RE: job scheduler with struts

2001-02-25 Thread malcolm davis

Will java.util.Timer work for you?
It was added in v1.3

 >>-Original Message-
 >>From: Mihir Parekh [mailto:[EMAIL PROTECTED]]
 >>Sent: Sunday, February 25, 2001 10:18 AM
 >>To: struts
 >>Subject: job scheduler with struts
 >>
 >>
 >>We need to implement a job scheduler (similar to unix cron job). Is
 >>there a open source schedule which can be used with struts?  Any
 >>pointers on implementing servlet based scheduler?
 >>
 >>Thanks,
 >>Mihir
 >>



Re: job scheduler with struts

2001-02-25 Thread Robert Leland

Turbine implements a job scheduler, I don't know
if they implemented it themself or integrated it
from another package. Perhaps this
is also one utility that could go in the proposed
code sharing library for Jakarta.

-Rob

Mihir Parekh wrote:
> 
> We need to implement a job scheduler (similar to unix cron job). Is
> there a open source schedule which can be used with struts?  Any
> pointers on implementing servlet based scheduler?
> 
> Thanks,
> Mihir



Re: job scheduler with struts

2001-02-25 Thread Jim Richards


Depending on what you want to do, you could put your code into an
action, fix it with a URL like 

http://localhost/thingy.do

and then run a job that calls the page. If you're on UNIX get the Perl
module LWP, which installs command line scripts, one called GET
which will call a URL for you, so then your script line in cron would be

GET http://localhost/thingy.do >> /tmp/thingy.log

If you're on NT, although it should work I'm not sure. There is an
implementation of "at" for NT in the NT resource kit. Otherwise you
might have to look at other options.

Just be aware if you do't secure the page, then anyone will be able to
call it.

Mihir Parekh wrote:
> 
> We need to implement a job scheduler (similar to unix cron job). Is
> there a open source schedule which can be used with struts?  Any
> pointers on implementing servlet based scheduler?
> 
> Thanks,
> Mihir



RE: job scheduler with struts

2001-02-25 Thread malcolm davis

I think Mihir was looking for generic code that would run on
any platform and be incorporated into the struts framework.  
The NT scheduler (at) or Unix cron are both os specific solutions.

Second, if wanted to call urls, you don't need perl, just use
the URL connection in Java.

 >>-Original Message-
 >>From: Jim Richards [mailto:[EMAIL PROTECTED]]
 >>Sent: Sunday, February 25, 2001 3:44 PM
 >>To: [EMAIL PROTECTED]
 >>Subject: Re: job scheduler with struts
 >>
 >>
 >>
 >>Depending on what you want to do, you could put your code into an
 >>action, fix it with a URL like 
 >>
 >> http://localhost/thingy.do
 >>
 >>and then run a job that calls the page. If you're on UNIX get the Perl
 >>module LWP, which installs command line scripts, one called GET
 >>which will call a URL for you, so then your script line in cron would be
 >>
 >> GET http://localhost/thingy.do >> /tmp/thingy.log
 >>
 >>If you're on NT, although it should work I'm not sure. There is an
 >>implementation of "at" for NT in the NT resource kit. Otherwise you
 >>might have to look at other options.
 >>
 >>Just be aware if you do't secure the page, then anyone will be able to
 >>call it.
 >>
 >>Mihir Parekh wrote:
 >>> 
 >>> We need to implement a job scheduler (similar to unix cron job). Is
 >>> there a open source schedule which can be used with struts?  Any
 >>> pointers on implementing servlet based scheduler?
 >>> 
 >>> Thanks,
 >>> Mihir



Re: job scheduler with struts

2001-02-26 Thread Mihir Parekh

Yes ! I am looking for a generic code which can be packaged as part of
servlet/jsp application.

Mihir


malcolm davis wrote:

> I think Mihir was looking for generic code that would run on
> any platform and be incorporated into the struts framework.
> The NT scheduler (at) or Unix cron are both os specific solutions.
>
> Second, if wanted to call urls, you don't need perl, just use
> the URL connection in Java.
>
>  >>-Original Message-
>  >>From: Jim Richards [mailto:[EMAIL PROTECTED]]
>  >>Sent: Sunday, February 25, 2001 3:44 PM
>  >>To: [EMAIL PROTECTED]
>  >>Subject: Re: job scheduler with struts
>  >>
>  >>
>  >>
>  >>Depending on what you want to do, you could put your code into an
>  >>action, fix it with a URL like
>  >>
>  >> http://localhost/thingy.do
>  >>
>  >>and then run a job that calls the page. If you're on UNIX get the Perl
>  >>module LWP, which installs command line scripts, one called GET
>  >>which will call a URL for you, so then your script line in cron would be
>  >>
>  >> GET http://localhost/thingy.do >> /tmp/thingy.log
>  >>
>  >>If you're on NT, although it should work I'm not sure. There is an
>  >>implementation of "at" for NT in the NT resource kit. Otherwise you
>  >>might have to look at other options.
>  >>
>  >>Just be aware if you do't secure the page, then anyone will be able to
>  >>call it.
>  >>
>  >>Mihir Parekh wrote:
>  >>>
>  >>> We need to implement a job scheduler (similar to unix cron job). Is
>  >>> there a open source schedule which can be used with struts?  Any
>  >>> pointers on implementing servlet based scheduler?
>  >>>
>  >>> Thanks,
>  >>> Mihir




Re: job scheduler with struts

2001-02-26 Thread Wayne Ohm

Check out http://www.coolservlets.com/ and look for "maintenace package".  I hope
this is what you are looking for.

Mihir Parekh wrote:

> Yes ! I am looking for a generic code which can be packaged as part of
> servlet/jsp application.
>
> Mihir
>
> malcolm davis wrote:
>
> > I think Mihir was looking for generic code that would run on
> > any platform and be incorporated into the struts framework.
> > The NT scheduler (at) or Unix cron are both os specific solutions.
> >
> > Second, if wanted to call urls, you don't need perl, just use
> > the URL connection in Java.
> >
> >  >>-Original Message-
> >  >>From: Jim Richards [mailto:[EMAIL PROTECTED]]
> >  >>Sent: Sunday, February 25, 2001 3:44 PM
> >  >>To: [EMAIL PROTECTED]
> >  >>Subject: Re: job scheduler with struts
> >  >>
> >  >>
> >  >>
> >  >>Depending on what you want to do, you could put your code into an
> >  >>action, fix it with a URL like
> >  >>
> >  >> http://localhost/thingy.do
> >  >>
> >  >>and then run a job that calls the page. If you're on UNIX get the Perl
> >  >>module LWP, which installs command line scripts, one called GET
> >  >>which will call a URL for you, so then your script line in cron would be
> >  >>
> >  >> GET http://localhost/thingy.do >> /tmp/thingy.log
> >  >>
> >  >>If you're on NT, although it should work I'm not sure. There is an
> >  >>implementation of "at" for NT in the NT resource kit. Otherwise you
> >  >>might have to look at other options.
> >  >>
> >  >>Just be aware if you do't secure the page, then anyone will be able to
> >  >>call it.
> >  >>
> >  >>Mihir Parekh wrote:
> >  >>>
> >  >>> We need to implement a job scheduler (similar to unix cron job). Is
> >  >>> there a open source schedule which can be used with struts?  Any
> >  >>> pointers on implementing servlet based scheduler?
> >  >>>
> >  >>> Thanks,
> >  >>> Mihir




Is there a scheduler for calling time based actions

2002-03-18 Thread struts (H2Opilot)

hi,
i am looking for a scheduler who can call time based struts-actions...

Has anybody an idea?

thx
Elmar

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




Re: Is there a scheduler for calling time based actions

2002-03-18 Thread MARK NICHOLS

Go to google.com, type "servlet based scheduler for timed events" in the search box. 
Hit enter key. Wait.

Ah... first result link looks like a winner 
http://www.jcorporate.com/html/products/expresso/job_control.html 

/\/\ark


___
- mark h. nichols
- dhsv022 at dhs dot state dot il dot us 

The best laid plans o'mice and men gang aft aglay...
-Robert Burns

>>> [EMAIL PROTECTED] 03/18/02 10:25AM >>>
hi,
i am looking for a scheduler who can call time based struts-actions...

Has anybody an idea?

thx
Elmar

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



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




RE: Is there a scheduler for calling time based actions

2002-03-18 Thread Hoang, Hai

Fulcrum has a nice job scheduler as well.

Fulcrum was developed as part of the Turbine Framework. It is now decoupled
and can be used by itself. 

http://jakarta.apache.org/turbine/fulcrum/index.html



-Original Message-
From: MARK NICHOLS [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 18, 2002 10:54 AM
To: [EMAIL PROTECTED]
Subject: Re: Is there a scheduler for calling time based actions

Go to google.com, type "servlet based scheduler for timed events" in the
search box. Hit enter key. Wait.

Ah... first result link looks like a winner
http://www.jcorporate.com/html/products/expresso/job_control.html 

/\/\ark


___
- mark h. nichols
- dhsv022 at dhs dot state dot il dot us 

The best laid plans o'mice and men gang aft aglay...
-Robert Burns

>>> [EMAIL PROTECTED] 03/18/02 10:25AM >>>
hi,
i am looking for a scheduler who can call time based struts-actions...

Has anybody an idea?

thx
Elmar

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



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

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