----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Looking closer at our code the problem seems to be ours (isn't always the
user's code and not Jserv :-).

We declared the variables that held the init args as class
(static) variables.  Depending on which zone got started
first would determine the initial value of these static
attributes.

How are init args handled?  Are the init args essentially
in core for the life time of the servlet engine, or are they
looked up with each call to getInitParameter()?  If there's
no penalty for calling getInitParameter() to query the
init args for each doPost() or doGet(), I'll just do that.

This would allow me to alias the apps as desired and provide
unique init args for each.

-Freeman

-----Original Message-----
From: Jon Stevens [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 31, 2000 1:38 PM
To: Java Apache Users
Subject: Re: Zone initargs problem...


----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

on 5/31/2000 1:11 PM, Freeman Pascal at [EMAIL PROTECTED] wrote:

> I have a class that is being used under multiple aliases (i.e. each unique
> application
> 'code' property points to the same class).  It appears that JServ is
> confusing the initargs
> between the application aliases and the initargs for one alias are being
> used by another.
> 
> Has anyone seen this before?  Is there a fix?

I haven't seen it before because I generally don't use that methodology and
I'm not sure the fix. :-( It should be pretty simple though, take a look at
the code that handles the initArgs section. From what I remember, it is
pretty short and simple.

-jon



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to