Image

How to initiate RMI server-side multiplexing? Sun LIES in 1.3 docs

Sun's RMI Documentation LIES about multiplexing.

In this document http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html#firewallIn they recommend restricting a machine's listen priviledges thereby forcing it into multiplexed mode.

In this bug, http://developer.java.sun.com/developer/bugParade/bugs/4257730.html we hear about how Sun thought to obscure security problems with RMI by restricting client-initiated multiplexing.


This leaves me with an unfortunate situation. I have a client-server project, where as usual the client connects to the server, which has a published service port. The client then requires callbacks as data arrives.

I'm about an hour away of having no option other than to create a socket factory that tunnels all connections through an established socket, effectively creating my own implementation of a multiplexed connection.

Is there any way I use my existing RMI infrastructure to initiate multiplexed mode so that I don't have to delve into this horrendous waste of time? Are there any ready-made tunnel socket factories?

I'll be crossposting this to the Blackdown list.

All the RMI proxies are either huge (j2ee app servers), or require code changes... the socket tunnel factory keeps looking easier and easier.

The people at #java on EFnet were useless, obtuse, and banned me after I put their attitude on a feedback loop :p, it reminded me of Imagefuckyoucrew ... now I remember why I gave up on IRC.