Re: T5.3 application level singleton cache with Hibernate injection

2012-08-09 Thread Kalle Korhonen
On Thu, Aug 9, 2012 at 10:17 AM, Daniel Jue wrote: > Thanks Kalle, that was the example I wanted to see. Is there a way to > force my tapestry-hibernate module to load before my CacheModule , so I can > grab it's configuration? Right now I'm spinning up a separate hibernate > configuration, and

Re: T5.3 application level singleton cache with Hibernate injection

2012-08-09 Thread Daniel Jue
Thanks Kalle, that was the example I wanted to see. Is there a way to force my tapestry-hibernate module to load before my CacheModule , so I can grab it's configuration? Right now I'm spinning up a separate hibernate configuration, and then manually loading classes into that configuration. On

Re: T5.3 application level singleton cache with Hibernate injection

2012-08-08 Thread Kalle Korhonen
On Wed, Aug 8, 2012 at 9:46 PM, Daniel Jue wrote: > Problem: > I want to initialize this cache on server startup, before any pages are > served, since it can take a few minutes. > I want to pass it session from tapestry hibernate, since I use that > configuration in the pages (I'm guessing there i

T5.3 application level singleton cache with Hibernate injection

2012-08-08 Thread Daniel Jue
After a long hiatus from web development, I have a chance to get back into Tapestry for a small project. I kind of need a refresher for an approach I haven't had to do before: Context note: Running T5.3 on Tomcat or Jetty, from latest Tynamo release with Tynamo hibernate/resteasy modules. Applic