Hello,
   I asked a question a while ago about having initargs in a file with
no settings having to be put into the jserv.conf/zone files, etc.  I
missed the section in the configuration file that tells how to do this.

#Since each servlet may have lots of private initialization data, Apache
JServ
# allows you to store those servlet initArgs in a separate file. To do
this,
# simply do not set any initArgs in this file: Apache JServ will then
look for
# a file named "[servlet classname].initargs" in the same directory of
that
# class. Note that this may work with even class archives.
###########################################################

this message has a typo in it, and is not clear on exactly what you have
to do to get it to work.

first of all the file is named [servet classname].initArgs  (capital A,
stumped me for a while till i broke down and looked at the jserv
source).

second this file is a java.util.Properties load file. has the format :
key1=value1
key2=value2

this file goes in the same location as the class file.

for class Example in package org.mitre which is in a servlet zone
mounted under /examplezone

you will have a structure like this :
/examplezone/org/mitre/Example.class
/examplezone/org/mitre/Example.initArgs

/examplezone/org/mitre/Example.initArgs will look something like this :
myconfigfile.location=/examplezone/org/mitre/Example.config
myname=bob

or something like this.  Hopefully this message is correct (though i'm
sure i made a mistake or two typing this up, i did manage to get it
working on my machine).

Hopefully this will help somebody out there.




----------------------------------------------------------------
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