Re: Any way to see the codebase of an object?

Gregg Wonderly <[email protected]> Fri, 26 Jun 2009 10:09:16 -0500
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Alex Co wrote:
> Solved.
> It seems that client can not receive  
> -Djava.rmi.server.codebase=http://localhost:8080/
> during launch
> 
> Only the server needs that.

Yes, java.rmi.server.codebase is a property used by the RMI/Jini mechanisms 
through the RMIClassLoaderSPI to cause MarshalledObject() use by RMI/Jini to 
attach the indicated URLs as the annotations for "server" exported objects.

The client's URLClassLoader (or like class loader implementation per 
RMIClassLoaderSPI) use (through the implementation details in RMI/Jini 
endpoint/invocation layer activities) will use those annotations to download and 
resolve classes.

Gregg Wonderly

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]