Re: Improperly encoded URLs
Peter Jones <[email protected]> Wed, 20 Jun 2007 16:55:23 -0400
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <20070620205523.GD27308@east> |
On Wed, Jun 20, 2007 at 04:06:59PM -0400, Humphreys, Brett wrote: > > It seems that sun.rmi.server.UnicastRef.invoke produces this list of > space separated jar URLs (figure 4, step 7 in the referenced document) > that are sent to the server and parsed. I'm curious how this list is > produced. Is every classloader in the VM queried for jar locations it > has loaded? If the java.rmi.server.codebase property isn't set, how is > this list calculated? > > Further setting java.rmi.server.codebase property (on the client, who is > making the call) doesn't seem to have much affect on this behavior. At > least with respect to the list of jars that are sent to the server. But > according to the documentation, I expected it to have some affect on > this behavior. Gregg is right to point to the RMIClassLoader.getClassAnnotation method. The behavior of that method for the default RMIClassLoader provider is described here: http://java.sun.com/javase/6/docs/api/java/rmi/server/RMIClassLoader.html#getDefaultProviderInstance() -- Peter =========================================================================== 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