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

> 
> Right, I misunderstood.  This is exactly what I'm doing.  MY 
> problem isn't
> getting to method to run when I want, its already doing that, 
> its that when
> it runs, it doesn't read the new properties file.  The object 
> contains the
> old data.
> 
> Let me try and explain again.  The problem has nothing to do 
> with where the
> method is called.  It has to do with changes in the property 
> file only being
> recognized once.  If I call the method from a command line 
> java app 100
> times, it recognizes the changes 100 times.  If I call it 100 
> times from a
> servlet, it recognizes only the first change and then returns 
> that same
> object the other 99 times regardless of any changes made to the file.
> 
> Does this make any sense?
> 
> Thanks,
> Thad

Yes, that makes sense, but it's a problem that I haven't seen.  Perhaps it's
a problem unique to your setup?  What you describe
should work.  I've been able to switch parameters in the 
properties file "on the fly" as you describe without a problem.

jae


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