This was noted by a couple of my clients during training.

Andy's solution is OK, except its hard to load a page sometimes when
there's no active request.

You can force the Hibernate to initialize early, which is 9 of your 10 seconds:

public void contributeRegistryStartup(OrderedConfiguration<Runnable>
configuration, final HibernateSessionSource sessionSource)
{
  configuration.add("HibernateStartup", new Runnable() { public void
run() { sessionSource.getConfiguration(); } });
}

On Fri, Nov 7, 2008 at 5:29 AM, 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
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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

Reply via email to