tags:

views:

100

answers:

0

Just finished a basic implementation of RMI for a class project, and now I am interested in how it is actually done. Sun is kind enough to provide the source for the majority of the Java classes with the JDK, however an implementation of RemoteRef doesn't seem to be there. I have the source for the interface RemoteRef along with the ServerRef interface and one implementation, ProxyRef, which just calls invoke on another RemoteRef, but none of the classes that implement actual code, ActivatableRef or UnicastRef for example, are included.

I mention ActivatableRef and UnicastRef because I believe these have proper implementations of invoke thanks to the wonder that is Eclipse and its class file editor showing that it is more then just a method declaration. Although I can tell that it is more then a declaration, I can't get much more out of it, building a string here, throw exception there, but nothing about the process that is taking place to send the remote method call. Would anyone here happen to know where I can get this code, or if its even available?

If it is not available, would anyone happen to know what the message being sent to the server looks like?

phill

Edit As I often do, I continued to search after posting and did find something on docjar that is suppose to show the source for the UnicastRef object. It seems a little odd though that it would contain an empty method (Line 260) and the use of a number of deprecated classes and methods. Is this sort of thing common in the java source or do I have the wrong implementation?