RMISocketFactory for SSL and Compression

Can anyone point me to some source on creating an RMISocketFactory that uses JSSE and compression? I actually have an RMISSLSocketFactory, very easy to create, but didn't know the best way to add compression.TIA
[226 byte] By [rdifalco] at [2007-9-30 21:09:00]
# 1
Really? No takers on this?
rdifalco at 2007-7-7 2:42:12 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 2

In theory all you have to do is add a compressing stream between your application code and the SSLSocket.

However there are problems with using [G]ZipOutputStreams because of the necessity to call finish() when flushing, the problem being that this finishes the ZipOutputStream so you then have to start another one, which defeats its purpose really. Search these forums for an answer (if there is one).

You can greatly help the general transmission efficiency of SSL without compression by always using a BufferedOutputStream of at least 16k when writing to an SSLSocket. This can make an order-of-magnitude improvement in the wire efficiency if you write in small chunks.

ejp at 2007-7-7 2:42:12 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...