Hey

Tom Cook wrote:
> URL urls[] = new URL[1];
> urls[0] = new URL( "http://localhost:8083" );
> ClassLoader cl = new URLClassLoader( urls );
> Thread.currentThread().setContextClassLoader( cl );
> System.setSecurityManager( new RMISecurityManager() ); // Not sure this is needed

RMI needs an SM, so it's needed.

> BTW, what happens if the same classes are being loaded by two different
> classloaders?  How do they appear in the webserver?  The client shouldn't care,
> but...

The "first" one is returned. So, if you want crystal clear semantics
don't deploy the same class twice, and if you do make sure it's the same
version (at least if you want to use dynamic classloading).

regards,
  Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]


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

Reply via email to