Re: How to init T5 pages on deployment? - 1st few hits would be faster

2007-09-16 Thread Martin_S
Oh yeah, you obviously don't need the Hibernate code there. Angelo Chen wrote: > > Hi Martin, > > Can you share some portion of the code ? I'd like to test it if I can > speed up my app? Thanks. > > A.C. > > > Martin_S wrote: >> >>

Re: How to init T5 pages on deployment? - 1st few hits would be faster

2007-09-16 Thread Martin_S
ike to test it if I can > speed up my app? Thanks. > > A.C. > > > Martin_S wrote: >> >> I have chosen quick-and-dirty for now. like >> http://www.hibernate.org/114.html, I used a ServletContextListener to >> detect deployment. For our particular objectiv

Re: How to init T5 pages on deployment? - 1st few hits would be faster

2007-09-15 Thread Martin_S
onentClassResolver would need >> a >> > method that could provide the names of all pages. It knows, but >> doesn't >> > currently have an API to share that information. >> > >> > Armed with the page names, you would just have to make a bunch of c

Re: How to init T5 pages on deployment? - 1st few hits would be faster

2007-09-13 Thread Martin_S
Hi Howard, I have found both ApplicationInitializer and ComponentSource only available by injection within a page which is already instantiated. What I was looking for is a way to create all pages (or even just one) before a user request would hit. Also, could you give just a little bit more deta

How to init T5 pages on deployment? - 1st few hits would be faster

2007-09-13 Thread Martin_S
Tapestry 5 currently is slow when a user hits a page for the first time. Does anyone know how to make T5 create all page instances at deploy time in Tomcat? For example, the Hibernate project suggests using a ServletContextListener to create a SessionFactory. Something similar would be great in T5