Hello,

By default, on the client side, you need to have the bean interfaces at
least (home, remote and pk). Only the stub will be dynamically downloaded
from the server. That is, your client code needs the interfaces that
establish the contract but the actual implementation can be downloaded from
the server dynamically.

Cheers,



                                        Sacha

> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Marcin
> Chalotowski
> Envoye : jeudi, 2 aout 2001 11:04
> A : [EMAIL PROTECTED]
> Objet : [JBoss-user] Dynamic Class Loading
>
>
> 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.



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to