Re: Client needs a copy of the interface(s)

Niclas Hedhman <[email protected]> Sun, 22 Jan 2006 01:18:10 +0800
Newsgroups gmane.comp.java.sun.rmi
Organization Independent
Message-ID <[email protected]>
On Saturday 21 January 2006 21:20, Lewis Keen wrote:
> I understand why its throwing the error, since its technically two seperate
> GameInterface classes. I'm just not sure how to resolve it. If anyone here
> has experience with deploying RMI applications that could shed some light
> on this I would be very grateful.

1. Yes, of course the interface must be in the same package.

2. Typically, you place all the interface related classes in an API
subproject, and/or generate a separate Jar file for those. "related" refers
to the remote interface itself plus all Exceptions, return types and method
argument types.

4. That API jar is needed for the compilation of the client, and most commonly
part of the client distro.

5. For runtime dependencies, such as classes needed internally in for instance
the returned objects, you need to establish a codebase server, where the
client can dynamically gain access to this classes. The codebase location is
established on the server side, and a couple of ways exist to set that up.


Cheers
Niclas

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