Hi. I'm using the following line of code to dynamically load
classes as needed by my servlet:
// Determine which class to instantiate.
TransClass = (Class.forName(req.getParameter("transaction")));
I'd like the class to be reloaded when the .class file changes. I've
read that you can't unload a class, you can only create a new class
loader each time the .class file changes.
If you can't unload classes, won't you eventually run out of memory?
Or will the garbage collection routine eventually recognize that
nothing is using the old class, and destroy it?
--
David Medinets
http://www.Codebits.com
Author: Perl 5 by Example, Shell Programming Tools, PHP3 Application
Development
Visit http://www.thehungersite.com and Click the Button!
___________________________________________________________________________
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