Re: Isthere any open source jrmp (RMI) implementation?
Peter Jones <[email protected]> Wed, 13 May 2009 17:16:14 -0400
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <20090513211614.GC29701@east> |
On Wed, May 13, 2009 at 11:03:39AM -0600, Alex Co wrote:
> Hi all,
> I was trying for a while to communicate with a standard RMI server using a
> custom socket based java client application. Till now without success.
>
> Note: If I use the RMI client application the server responds well but using the
> custom socket based app it does not.
>
> Do you know any public available RMI implementation with open-source?
Sun's JDK implementation is available under GPLv2 through OpenJDK:
http://openjdk.java.net/
For example, you can browse the JDK 7 master Mercurial repository for
most of the libraries here:
http://hg.openjdk.java.net/jdk7/jdk7/jdk/
You might want to start by looking at
src/share/classes/sun/rmi/transport/tcp/TCPChannel.java
> I think that RMI spec is very undetailed and I cant implement client application
> just reading the rmi spec. Please, could you help me?
A couple of deficiencies are captured in this bug report:
http://bugs.sun.com/view_bug.do?bug_id=4674902
> After launching RMI server in the port 27000 (i also register it in rmiregistry) I
> am using the client socket based java application to try to interact with server
> by connecting to the port 27000 and then sending the message stream stored
> in this byte array and then i wait for the server reply that never comes...
>
> byte[] header = {0x4a,0x52,0x4d,0x49,0x00,0x01,0x4b};
As described in the above-mentioned bug report, that 0x01 should be
0x02.
Have you considered analyzing the packets exchanged during the
interactions between a functioning RMI client and server?
-- 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