Dynamic Class downloading
Calcy <[email protected]>
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Hi All,
Does the dynamic class downloading feature of RMI download any class that's
not available in the client's class path?
Let's say I have the following code on the client:
Object o = context.lookup("jndiName");
ExampleHome h = (ExampleHome)o;
(I know that I have to use PortableRemote.. class to typecast, but it's just
for brevity's sake that I simply typcasted it)
Now, is it mandatory that I have this the ExampleHome's class file in the
classpath for this client program to run? Or does it get dynamically
downloaded from the server (you can assume that it's already present on the
server, which exposes it using the codebase url).
If this class has to be present in the client's classpath, then what exactly
does the dynamic class downloading do?
Cheers.
===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS". For general help, send email to
[email protected] and include in the body of the message "help".
For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html
To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html