You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Eric Lalande <er...@lalande.com> on 2004/08/26 13:15:56 UTC

Problem with Multiple Instances of Turbine

 It looks like Turbine uses a lot of static/global variables through out 
the code.  These global variables will cause problems if different Turbine 
configurations are used to initialize Turbine by different sites within a 
single Tomcat installation.  After further investigating the issue, I 
found that Turbine attempts to prevent multiple initializations of the 
Turbine servlet.

Notice the global firstInit variable.  It is set to false after init() is 
called by init(ServletConfig config), the standard initialization function 
for a servlet.  Once it is set to false, all instances of Turbine will run 
off of the same configuration.  Is this the intent?

Eric


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Problem with Multiple Instances of Turbine

Posted by Daniel <da...@yorku.ca>.
Hi,

FWIW, we have deployed multiple webapps that use the Turbine framework in
a single Tomcat container and don't have problems.

Regards,
Daniel

On Thu, 26 Aug 2004, Eric Lalande wrote:

>  It looks like Turbine uses a lot of static/global variables through out
> the code.  These global variables will cause problems if different Turbine
> configurations are used to initialize Turbine by different sites within a
> single Tomcat installation.  After further investigating the issue, I
> found that Turbine attempts to prevent multiple initializations of the
> Turbine servlet.
>
> Notice the global firstInit variable.  It is set to false after init() is
> called by init(ServletConfig config), the standard initialization function
> for a servlet.  Once it is set to false, all instances of Turbine will run
> off of the same configuration.  Is this the intent?
>
> Eric
>
>
> ---------------------------------------------------------------------
> 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