Hi :-)
* enviroment:
- jakarta-tomcat-4.0-b1(StandAlone)
- I have two "webapps"->webapp0 and webapp1 :
% I set up T_H/conf/server.xml ( T_H=TOMCAT_HOME )
% and I have two forlders:
T_H/webapps/myServletFolder0
T_H/webapps/myServletFolder1
- I use MyHelper in 2 ways:
% I put MyHelper.class in:
T_H/webapps/myServletFolderX/Web-inf/classes
% or I "jar cvf" MyHelper.class into MyHelper.jar, and put it into:
T_H/webapps/myServletFolderX/Web-inf/lib
* then my question is: is the following Right? :-)
- between every webapp:
every webapp has its own(and OnlyOne) ServletContext, But the
classloader for these ServletContexts are the same one
(System ClassLoader ?) ; And it is also the OnlyOne classloader of
every HttpSession of every webapp (Y/N)
- whithin every webapp:
% every webapp has its own(and OnlyOne) classloader to load
all MyServlets and MyHelpers within this webapp.
% if any MyServlet has been updated, All MyServlets
will be reloaded, the old classloader has been detroyed,
and we will still have a (new)OnlyOne classloader. (Y/N)
% no matter I use:
"class-style MyHelper(a class file in classes folder) or
"jar-style MyHelper(a jar file in lib folder)
MyHelper will Also be loaded by the above OnlyOne
classloader which is used to load MyServlet. it means,
if any MyServlet has been updated, all MyHelpers will
be re-loaded. (Y/N)
if the above is right, I will write it into my notebook and use them
directly later(without thinking again) //haha :-)
Thanks in advance! :-)
Bo
Feb.15, 2001
___________________________________________________________________________
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