Hello,

I would lie to load a class by its name inside some EJB session code.

Since I never did that, I carefully read the Wiki documents dedicated to class 
loaders and scoped applications. I realize the classes I want need to be loaded 
by a JBoss-specific class loader (UnifiedClassLoader).

However, I'm wondering how I can get access to the class loader of my 
application. Is the following snippet correct ?

Class myClass = 
Thread.currentThread().getContextClassLoader().loadClass("org.example.myClass") 
;

Thanks for your help.

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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to