In one version of Java Web Server (from Sun) v1.1.3, I noticed that the
cache is not intelligent as described in the documentation.
According to the docs, the web server should check the date of the
servlet file against the date in the cache. If it is different, it will
load the new one. If it is the same, it uses the cached copy.
This can be a problem, because if you make code changes, recompile, and
copy your *.class file to your servlets directory, it may not take the
change. In other words, your code change will not appear. Very
frustrating!
The best way to solve this problem is to shutdown the server, and
re-start it. I have a bug filed with Sun regarding this problem.
Thanks.
Filippos Slavik wrote:
>
> You have to order the servlet-enabled web server to UNLOAD the servlet from
> it's memory. (aka the destroy method is called).
>
> Slavikos
>
> ################################################################
> Filippos Slavik
> Part of the SIAMS's implementation development team. For more
> information, please check http://www.siams.net
>
> e-mail : [EMAIL PROTECTED]
>
> ################################################################
>
> "The software said 'runs on Win95 or better,' so I installed
> it on Linux..."
>
> ----- Original Message -----
> From: Monish Unni <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 07, 1999 7:26 PM
> Subject: Servlet--->Class
>
> > Venerable Servlet Gurus,
> > Im Instantiating & calling a class from a Servlet service Method.After
> > Modifying the calling class (recompiling) The servlet still calls the old
> > class.(Browser Cache cleared,Browser Restarted)To check I delete the
> > calling class from the Disk,The jws still allows me to call the
> Class(which
> > doesnt xsist)Thanx for Ur Inputs in Advance...
> > Monish
> >
> >
> ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
--
Julio C. Monroy
Chief Information Officer
MallPhoria!
1400 Fashion Island Boulevard
San Mateo, California 94404
p: 650-349-0300
f: 650-571-1025
[EMAIL PROTECTED]
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html