Re: Best way to implement continuously background jobs

2013-11-11 Thread Ilya Obshadko
This is it, thanks! On Tue, Nov 12, 2013 at 11:25 AM, Dmitry Gusev wrote: > > http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/ReloadAware.html > > > On Tue, Nov 12, 2013 at 4:16 AM, Ilya Obshadko >wrote: > > > I have implemented ParallelExecutor for background mail sending.

Re: Best way to implement continuously background jobs

2013-11-11 Thread Dmitry Gusev
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/ReloadAware.html On Tue, Nov 12, 2013 at 4:16 AM, Ilya Obshadko wrote: > I have implemented ParallelExecutor for background mail sending. > > However, there is a problem with live class reloading, because I have to > stop the ol

Re: Best way to implement continuously background jobs

2013-11-11 Thread Ilya Obshadko
I have implemented ParallelExecutor for background mail sending. However, there is a problem with live class reloading, because I have to stop the old instance of ParallelExecutor and start the new one. How do I hook to class reload event? finalize() doesn't seem to work. On Wed, Jun 19, 2013 at

Re: Best way to implement continuously background jobs

2013-06-19 Thread Lance Java
There is the ParallelExecutor which is backed by a thread pool. Be warned, the pool size is 3 by default (configurable via a symbol). The ParallelExecutor will invoke PerThreadManager.cleanup() once your Runnable completes to clean up the hibernate session and any PerThreadValue instances.

Re: Best way to implement continuously background jobs

2013-06-19 Thread Kalle Korhonen
On Wed, Jun 19, 2013 at 12:04 AM, Rural Hunter wrote: > yes, that's what I thought of. But I would like to see if there is any > other option in Tapestry. > There's a tool for each use case. I can not imagine a much better tool for this case than a simple thread if the thread's lifetime is the sa

Re: Best way to implement continuously background jobs

2013-06-19 Thread Rural Hunter
yes, that's what I thought of. But I would like to see if there is any other option in Tapestry. 于 2013/6/19 14:53, Kalle Korhonen 写道: Create a thread? Kalle On Tue, Jun 18, 2013 at 11:42 PM, Rural Hunter wrote: Hi, Is there a "best practice" to implement continuously/long-run background

Re: Best way to implement continuously background jobs

2013-06-18 Thread Kalle Korhonen
Create a thread? Kalle On Tue, Jun 18, 2013 at 11:42 PM, Rural Hunter wrote: > Hi, > > Is there a "best practice" to implement continuously/long-run background > jobs in Tapestry? I know there is PeriodicExecutor but my requirement is to > have the job run continuously in the background. It sho

Best way to implement continuously background jobs

2013-06-18 Thread Rural Hunter
Hi, Is there a "best practice" to implement continuously/long-run background jobs in Tapestry? I know there is PeriodicExecutor but my requirement is to have the job run continuously in the background. It should start when the application starts and end when the application ends. ---