RMI, SSL, and compression

Hi,

I am trying to find an example of how to create a custom socket factory for RMI that does SSLandcompression. Doing either separately is easy, but it seems that using SSL precludes the use of a custom socket as one would want for compression. Any suggestions or pointers would be appreciated.

Regards,

Neal

[350 byte] By [pilotgeeka] at [2007-11-27 1:00:34]
# 1
Do a search on csf ssl. It returns many results.ejp answered a question similar to this recently. Search backward in this forum.
cooper6a at 2007-7-11 23:35:15 > top of Java-index,Core,Core APIs...
# 2

You can use SSLSocketFactory.createSocket(Socket, ...) to wrap SSL around an existing raw (or compressing) Socket. However, and to summarize what I said in the post referred to above, unless you're transmitting huge objects around there's not all that much to be gained by compression in RMI, because logically speaking (ignoring connection pooling for the moment) each new RMI call is a new TCP connection, so there isn't much chance for the compressor to adaptively learn about the data. And if you are transmitting huge objects around I wouldn't say that RMI, or the underlying Serialization, is the best technique.

ejpa at 2007-7-11 23:35:15 > top of Java-index,Core,Core APIs...