Add this to web.xml as well:
        <listener>
                <listener-class>
                        com.xxxx.tc.util.TapestryListener
                </listener-class>
        </listener>

The attached Java code needs cleanup, but it works.

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:
>> 
>> 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 objective, I made it spawn a
>> separate Thread to keep trying (for max one minute) to do a GET of a page
>> that needs to create an HttpSession. 
>> 
>> Tomcat needs you to read at least the first line of a response to obtain
>> the desired behavior.
>> 
>> 
> 
> 
http://www.nabble.com/file/p12728256/TapestryListener.java
TapestryListener.java 
-- 
View this message in context: 
http://www.nabble.com/How-to-init-T5-pages-on-deployment----1st-few-hits-would-be-faster-tf4437654.html#a12728256
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to