You can run different instances of Turbine in different zones and they can
have different properties files.  Aliasing within the same zone will not
allow two different properties files as the property file is read by a
singleton when it is first created.  See my configuration below.  In one
zone I am running Turbine as an alias and as Turbine.  The properties file
is the same for both.  If I specify two different properties files here the
first one called will set the properties.  In another zone, however, I have
specified a different properties file.  This system works as would be
expected.  If you have tried something like this and it did not work, make
sure your system (or wrapper) classpath is not including your zones.

Note:  I have had a problem in one mysterious case where the aliased version
of Turbine fails due to a problem with JServ returning a wrong value for
getServletPath().  Though the aliased version seems to work 99%(?) of the
time.


1.  mod_jserv.conf
ApJServMount /foo /foo
ApJServMount /servlets /root
ApJServMount /servlet /root

2. jserv.properties

zones=root,foo

# Configuration file for each servlet zone (one per servlet zone)
# Syntax: [servlet zone name as on the zones list].properties=[full path to
configFile] (String)
# Default: NONE
# Note: if the file could not be opened, try using absolute paths.
root.properties=C:\Program Files\Apache
Group\Apache\JServ\conf\zone.properties
foo.properties=C:\Program Files\Apache Group\ApacheJServ\conf\foo.properties

3.  foo.properties

servlet.Foo.code=Turbine
servlet.Turbine.initArgs=properties=d:\java\projects\foo\TurbineResources.pr
operties
servlet.Foo.initArgs=properties=d:\java\projects\foo\TurbineResources.proper
ties

4. zone.properties

servlet.Turbine.initArgs=properties=d:\java\projects\classes\TurbineResource
s.properties.mm


John McNally





----- Original Message -----
From: Bernie <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Friday, January 14, 2000 9:18 AM
Subject: More than Instance of Turbine


> Hi,
>
> I would like to run more than one instance of Turbine with different
> configuration settings. I tried to make an alias in the zone.properties,
> which didn't help. Once the Turbine is initalized, it remains in this
> configuration. also defining a seperate zone in jserv.conf,
> jserv.properties resulted in the same effect. Once Turbine is
> initialized it doesn't change. Do I have to run two web servers for
> this?
>
> In the concrete case I would like to run two times the jyve-application,
> which accesses different databases.
>
> Any help is appreciated. Thanks in advance.
>
> t. Bernie
>
>
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to