You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Dan Bachelder <ch...@chowda.net> on 2001/08/21 03:38:59 UTC
init
What does one need to do to force turbine to do all its initialization on
startup instead of on the first request? not a big deal really.. but it
would make doing testing and development just a tad faster...
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: init
Posted by Dan Bachelder <ch...@chowda.net>.
the <load-on-startup/> seemed to do the trick.. as long as it is the last
child of the <servlet> element...
thanks,
dan
----- Original Message -----
From: "Daniel Rall" <dl...@finemaltcoding.com>
To: <tu...@jakarta.apache.org>
Sent: Monday, August 20, 2001 10:47 PM
Subject: Re: init
> "Dan Bachelder" <ch...@chowda.net> writes:
>
> > What does one need to do to force turbine to do all its initialization
on
> > startup instead of on the first request? not a big deal really.. but it
> > would make doing testing and development just a tad faster...
>
> In 2.x, you can't do *all* the initialization before a first request
> because that version of Turbine is quite coupled with the Servlet
> API. In 3.x, I think this should be possible. In 2.x, you can start
> up a variety of services using TurbineConfig (see its JavaDoc for
> how). Not all services will work, however.
>
> Daniel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: init
Posted by Daniel Rall <dl...@finemaltcoding.com>.
"Dan Bachelder" <ch...@chowda.net> writes:
> What does one need to do to force turbine to do all its initialization on
> startup instead of on the first request? not a big deal really.. but it
> would make doing testing and development just a tad faster...
In 2.x, you can't do *all* the initialization before a first request
because that version of Turbine is quite coupled with the Servlet
API. In 3.x, I think this should be possible. In 2.x, you can start
up a variety of services using TurbineConfig (see its JavaDoc for
how). Not all services will work, however.
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: init
Posted by Dan Bachelder <ch...@chowda.net>.
right on... I should have figured that out when I saw it...
thanks
----- Original Message -----
From: "Scott Eade" <se...@backstagetech.com.au>
To: <tu...@jakarta.apache.org>
Sent: Monday, August 20, 2001 10:33 PM
Subject: Re: init
> From: "Dan Bachelder" <ch...@chowda.net>
> > <servlet>
> > <load-on-startup/>
> > <servlet-name>
> > newapp
> > </servlet-name>
> > BLAH, BLAH
> > </servlet>
> >
> > gives me:
> > PARSE error at line 9 column -1
> > org.xml.sax.SAXParseException: Element "servlet" does not allow
> > "load-on-startup" here.
>
> Check the DTD - the ordering of the elements is significant.
>
> I have my <load-on-startup/> just before </servlet> and it
> works fine.
>
> Scott
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: init
Posted by Scott Eade <se...@backstagetech.com.au>.
From: "Dan Bachelder" <ch...@chowda.net>
> <servlet>
> <load-on-startup/>
> <servlet-name>
> newapp
> </servlet-name>
> BLAH, BLAH
> </servlet>
>
> gives me:
> PARSE error at line 9 column -1
> org.xml.sax.SAXParseException: Element "servlet" does not allow
> "load-on-startup" here.
Check the DTD - the ordering of the elements is significant.
I have my <load-on-startup/> just before </servlet> and it
works fine.
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: init
Posted by Dan Bachelder <ch...@chowda.net>.
> From: "Dan Bachelder" <ch...@chowda.net>
> > What does one need to do to force turbine to do all its initialization
on
> > startup instead of on the first request? not a big deal really.. but it
> > would make doing testing and development just a tad faster...
>
> You can include a <load-on-startup/> element within the <servlet>
> element of web.xml. This will start the servlet when the servlet
> container is started.
>
<servlet>
<load-on-startup/>
<servlet-name>
newapp
</servlet-name>
BLAH, BLAH
</servlet>
gives me:
PARSE error at line 9 column -1
org.xml.sax.SAXParseException: Element "servlet" does not allow
"load-on-startup" here.
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: init
Posted by Scott Eade <se...@backstagetech.com.au>.
From: "Dan Bachelder" <ch...@chowda.net>
> What does one need to do to force turbine to do all its initialization on
> startup instead of on the first request? not a big deal really.. but it
> would make doing testing and development just a tad faster...
You can include a <load-on-startup/> element within the <servlet>
element of web.xml. This will start the servlet when the servlet
container is started.
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org