On Nov 23, 2007 7:15 PM, Abdelgadir Ibrahim
<[EMAIL PROTECTED]> wrote:
> My question is: what is the correct/appropriate RMI behaviour.
Correct RMI behavior, if you are want to use mobile code;
1. There must be a SecurityManager in place.
2. The Jar files in the remote codebase must contain;
a. The Remote interface.
b. All Exceptions that can be thrown.
c. All argument types.
d. All return types.
e. All classes and interfaces used by the argument and return types.
f. The RemoteStub (not needed in Java 5 and later).
3. Ideally, those classes are loaded via remotely accessible codebase
URL (i.e. the classloader has the http://... to the jar), otherwise
the java.rmi.server.codebase must be set.
4. The java.rmi.server.hostname might be needed to set which network
interface it should bind to.
Cheers
Niclas
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev