Ed Korthof wrote:
> 
> JServ does reloading of the classes in each zone based on its conf file
> and based on the contents of the repositoies.  Do you mean that JServ
> isn't re-reading the (Java .properties) conf file to reinitialize the
> JServServletManager?

Yes, thats what I am seeing. Jserv will reload and reinit my servlets if
I touch the zone file, however if I modify the zone file, my mods don't
seem to be flowing through to the servlet. I did a simple test with
HelloWorld.java reading an initArgs message from the zone file:

servlet.hello.initArgs=message=Hello World

and spitting it out to the browser. If I change the message and restart
JServ (I am running JServ standalone) the message to the browser changes
but if I change the message in the zone file, my log shows that it
reloads the servlet, but the message does not change until the next
restart. 

Trawling through the code it seems that the init(JServSendError) method
of JServServletManager uses the existing Configurations object created
in the constructor. I was able to get the required behaviour by
reinstantiating this member variable within the init(JServSendError)
method (I had to add another member variable to store the zone file
filename to do this) I'm not sure if this is how you would want to
implement this but the diffs are attached below. By the way, I did this
on 1.0b1.

Damian  

--
angel:siteadm [/home/damian/jserv/org/apache/jserv] > diff
JServServletManager.java JServServletManager.java.bak
136,138d135
< // Reloading zone file bug - djf 17/2/99
<     protected String confFilename;
<
202,204d198
< // Reloading zone file bug - djf 17/2/99
<         this.confFilename = confFile;
<
227,236d220
< // Reloading zone file bug - djf 17/2/99
<       // reload the configurations
<         // Get the configurations from confFile
<         try {
<           confs = new Configurations(new
ExtendedProperties(this.confFilename)
);
<         } catch (IOException e) {
<             JServ.fail("Could not read servlet zone configuration
file", e);
<         }
<
< 

-- 
Damian Fauth                                       201 Sussex Street
Software Engineer                                   Sydney, NSW 2000
John Fairfax Holdings Ltd                                  Australia
[EMAIL PROTECTED]                    Ph. (+612) 9282 3528


----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://www.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to