Re: Using RMI for bidirectional communication

Niclas Hedhman <[email protected]> Mon, 23 Jun 2008 21:24:16 +0800
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
On Mon, Jun 23, 2008 at 7:11 PM, Sebastian Hahn <[email protected]> wrote:
>> Since you have set up a custom socket already, you should realize that
>> you can map that socket connection into a multiplexed one. IIRC, there
>> was such solution floating ~8-10 years ago, but I can't recall the
>> details, and my own work in this is long lost.
>
> Thanks, unfortunately, I was unable to find anything about how to set that
> up... well, I guess it will be polling for firewalled clients, then.

In essence, create a custom SocketFactories that returns custom
Sockets that have input/output streams that knows how to interleave
two sets (or more) of traffic over the single established SSL stream
you have. It sounds harder than it is. The tricky bit is to push
performance up, since the flushing from RMI will not necessarily be
the best time to flush the underlying stream. But that can be worked
on later.


Cheers
Niclas

===========================================================================
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