i used this in my servlet, i set a new Loader(new path) with the current as 
parent:

                        URLClassLoader parentLoader = null, scriptletLoader = 
null;
                        
                        Object currentloader  = 
Thread.currentThread().getContextClassLoader(); 
                        if (currentloader instanceof URLClassLoader) 
parentLoader = (URLClassLoader)currentloader;                       
                        scriptletLoader = new URLClassLoader(new URL[]{ new 
URL(new File(homeDir + 
System.getProperty("file.separator")).toURL().toString())}, parentLoader);      
                                     
                        
Thread.currentThread().setContextClassLoader(scriptletLoader);

is that a "good" solution? can something going wrong if i set a new loader? is 
there a better way? 

thx!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881777#3881777

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881777


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to