Re: Per Thread Class Loader... what do you think?

2007-08-06 Thread Johnny Kewl
- 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

Re: Per Thread Class Loader... what do you think?

2007-08-05 Thread Leon Rosenberg
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

Per Thread Class Loader... what do you think?

2007-08-05 Thread Johnny Kewl
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //===new DoServiceClass().doService(request, response) ClassLoader origClassLoader = Thread.currentThread().getContextClassLoader(); Ex