Hello,
I try to write a Jboss client application which loads all necessary
classes from the server (WebService listening at 8083). I have read a
post about Dynamic Class Loading (
http://www.mail-archive.com/[email protected]/msg11392.html
) but not everything is clear for me.
1. I have for example User bean on the server. Classes are UserHome,
User and UserEJB
2. I run my client program without any of above classes in classpath.
3. I do set URLClassLoader with apropriate URL as ContextClassLoader for
currentThread.
4. When instance of InitialContext is created the class UserHome loads
from the server.
5. But when in the source there is used UserHome class, VM calls
Class.forName ( using system ClassLoader ) and throws
ClassNotFoundException.
My question is: How can I write client which uses WebService for class
loading when I can not use classes from the server? Of course I can use
java.lang.reflect but it is very slow.
Thanks in advance,
Marcin
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user