Hi all,

I've run into the following situation that I'm not sure how to resolve:

I want to run two Turbine applications on a single server, so I put 
something like this in my zone.properties file:

servlet.app1.code=org.apache.Turbine
servlet.app2.code=org.apache.Turbine

...

servlet.app1.initArgs=properties=/usr/local/jserv/etc/app1.properties
servlet.app2.initArgs=properties=/usr/local/jserv/etc/app2.properties

I haven't fully walked the service initialization code yet, but it appears 
that that cached app1.properties and app2.properties can't co-exist 
peacefully in the same JVM because TurbineResourceService has only
a single static GenericResources object for for the cached properties to 
live in.

I thought about changing that static object in TurbineResource to a 
Hashtable that would store each set of properties under a different key 
(the filename), but I'm not sure how I would know what set of properties
to look under during a lookup because I don't see a way to get at the
ServletContext from within TurbineResources.

I suppose that I could sidestep the problem by running each app in 
a different servlet zone in its own VM, but I'd prefer to not do that.

I'm happy to spend some time working on the Turbine code to make
this situation work, and I'd like to hear suggestions on how to go about
it.

Thanks,
Jon




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to