This is me thinking out loud, so this might not work at all because i
haven't tried it. But here's what my first go at this would be.
In the application module:

public static void contributeRegistryStartup(OrderedConfiguration<Runnable>
            configuration, @Inject @Value("${tapestry.start-page-name}")
final String startPageName, final PagePool pagePool) {
        configuration.add("StartPageLoad", new Runnable() {
            public void run() {
                pagePool.checkout(startPageName);
            }
        });
    }

Try this out, maybe it doesn't work but at least it's something to start
from.


On Fri, Nov 7, 2008 at 1:29 PM, Szemere Szemere <
[EMAIL PROTECTED]> wrote:

> Is there an easy way to have Tapestry auto-load or auto-request the start
> page when the core Tapestry servlet loads up?
>
> The first page to load when we restart Tapestry takes over 10seconds
> (mostly
> because of Hibernate and number of linked pages), which we only get to when
> making the first request from a browser.  A way to automate the first
> request would be very useful, because it places the time cost outside of
> user interaction.
>
> Szemere
>

Reply via email to