You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by 9902468 <vi...@greenstreet.fi> on 2011/10/17 18:45:32 UTC

PeriodicExecutor: services and Hibernate

Hi,

I can inject services to the job that is going to be periodically executed.
Do I have to manage my own transactions (using HibernateSessionManager) and
clean up after each execution using PerthreadManager?

If so, are you going to provide support for those in the future? 
Additionally, is it guaranteed that the job will execute even if it has
previously thrown exception? 
How the executor behaves in cluster?

I couldn't find documentation about this, is there any?

 - Ville

--
View this message in context: http://tapestry.1045711.n5.nabble.com/PeriodicExecutor-services-and-Hibernate-tp4910599p4910599.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: PeriodicExecutor: services and Hibernate

Posted by 9902468 <vi...@greenstreet.fi>.
Ok, thanks for the info! (And thanks for the superb work also ;))

 - Ville

--
View this message in context: http://tapestry.1045711.n5.nabble.com/PeriodicExecutor-services-and-Hibernate-tp4910599p4922226.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: PeriodicExecutor: services and Hibernate

Posted by Howard Lewis Ship <hl...@gmail.com>.
The PeriodExecutor uses the PerThreadManager to execute your
runnables.  Translation: the normal end-of-request processing (closing
of connections, etc.) applies here as well.

On Mon, Oct 17, 2011 at 10:43 AM, Tony Nelson <tn...@starpoint.com> wrote:
> Using tapestry-hibernate mine seemed to just work.  I have a job that runs every 5 minutes that simply inserts a new row into a table.  I inject the service, which in turn uses an injected DAO.  No fussing w/ sessions as far as I can tell.
>
> Tony
>
> On Oct 17, 2011, at 12:45 PM, 9902468 wrote:
>
>> Hi,
>>
>> I can inject services to the job that is going to be periodically executed.
>> Do I have to manage my own transactions (using HibernateSessionManager) and
>> clean up after each execution using PerthreadManager?
>>
>> If so, are you going to provide support for those in the future?
>> Additionally, is it guaranteed that the job will execute even if it has
>> previously thrown exception?
>> How the executor behaves in cluster?
>>
>> I couldn't find documentation about this, is there any?
>>
>> - Ville
>>
>> --
>> View this message in context: http://tapestry.1045711.n5.nabble.com/PeriodicExecutor-services-and-Hibernate-tp4910599p4910599.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: PeriodicExecutor: services and Hibernate

Posted by Tony Nelson <tn...@starpoint.com>.
Using tapestry-hibernate mine seemed to just work.  I have a job that runs every 5 minutes that simply inserts a new row into a table.  I inject the service, which in turn uses an injected DAO.  No fussing w/ sessions as far as I can tell.

Tony

On Oct 17, 2011, at 12:45 PM, 9902468 wrote:

> Hi,
> 
> I can inject services to the job that is going to be periodically executed.
> Do I have to manage my own transactions (using HibernateSessionManager) and
> clean up after each execution using PerthreadManager?
> 
> If so, are you going to provide support for those in the future? 
> Additionally, is it guaranteed that the job will execute even if it has
> previously thrown exception? 
> How the executor behaves in cluster?
> 
> I couldn't find documentation about this, is there any?
> 
> - Ville
> 
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/PeriodicExecutor-services-and-Hibernate-tp4910599p4910599.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org