Hi,

> Could someone tell me what is the purpose of having WebappLoader and
> WebappClassLoader in Tomcat?
>>WebappLoader is the Tomcat object that a user can configure that
>>represents the class loader. It remains the same across web application
>>stop/start.

>>WebappClassLoader is the actual class loader. Every time the web
>>application is started, a new instance is created and used.

> As I understand WebappClassLoader is per web application and WebAppLoader
for
> tomcat server instance. Am I wrong?
>>Yes.
Thanks for the quick explanation.
So it means WebappClassLoader and WebAppLoader both are per web
application.
In tomcat 7 we were able to add repository to the class loader using
WebAppClassLoader.addRepository()
So in Tomcat 8 if we wanna add repositories to the classloader we should
done that trough the WebAppLoader not with WebAppClassLoader?
Please correct me if I'm wrong.

Thanks
Best Regards

2015-04-21 1:51 GMT+05:30 Mark Thomas <ma...@apache.org>:

> On 20/04/2015 14:22, Thusitha Thilina Dayaratne wrote:
> > Hi,
> >
> > Could someone tell me what is the purpose of having WebappLoader and
> > WebappClassLoader in Tomcat?
>
> WebappLoader is the Tomcat object that a user can configure that
> represents the class loader. It remains the same across web application
> stop/start.
>
> WebappClassLoader is the actual class loader. Every time the web
> application is started, a new instance is created and used.
>
> > As I understand WebappClassLoader is per web application and
> WebAppLoader for
> > tomcat server instance. Am I wrong?
>
> Yes.
>
> Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


--

Reply via email to