- Original Message -
From: "Leon Rosenberg" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
Sent: Sunday, August 05, 2007 12:38 PM
Subject: Re: Per Thread Class Loader... what do you think?
could you elaborate a bit more why do you need the classloader to b
could you elaborate a bit more why do you need the classloader to be per thread?
In case that you really really need your own classloader for _some_
objects, why don't you create a global classloader and load only those
classes from it? why replace thread-classloader back and forth?
regards
Leon
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
//===new DoServiceClass().doService(request, response)
ClassLoader origClassLoader =
Thread.currentThread().getContextClassLoader();
Ex