Re: Help with java.rmi.server.codebase

Gregg Wonderly <[email protected]> Tue, 26 Dec 2006 18:23:22 -0600
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
Vanfleet, David wrote:
>   public interface DTOServerInterface extends Remote {
>     ...
>     public Library getLibrary(String libraryName) throws
> RemoteException;
>   }
>
> So, you're saying that because this class is being referenced from
> within this remote interface it can't be downloaded dynamically from
> java.rmi.server.codebase? It seems that this limitation causes this
> functionality to loose some of it's usefulness. What am I not
> understanding here?

This is the issue that I was referring to in my earlier post.  Because you have
a direct reference to the type "Library" in the definition of your class, that
classes definition must be visible to the loader that is loading DTOServerInterface.

Gregg Wonderly

===========================================================================
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