On Mon, 19 Feb 2001, you wrote:
[snip]
> On Fri, 16 Feb 2001, you wrote:
> > This, however, seems to obviate the purpose of the setContextClassLoader
> > method.  What exactly is it good for?
[snip]
> No.  Used only for dynamic classloading.
> 
> I believe it is used as the default class loader for RMI, as well as by
> DataTransfer.
> 

Ah, so something like this could work:

URL urls[] = ...;
ClassLoader cl = new URLClassLoader( urls );
Thread.currentThread().setContextClassLoader( cl );
System.setSecurityManager( new RMISecurityManager() );

InitialContext ctx = new InitialContext();
Object o = ctx.lookup( "my_home_interface" );
my.home.interface mhi = (my.home.interface)o;

And then it would use RMI classloading to download the classes from the server,
yes?

Or does RMI class loading work differently again?

Tom


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to