I have a Java app which uses RMI calls on bound interfaces to create remoteable objects.

Paul Beadle

After further investigation, it appears that using the same socket factory rather than a new one for each remoteable object derived from UnicastRemoteObject ensures that RMI shares the SSL connection for all objects. Also, ensure that all socket factories implement the hashCode and equals methods to force correct cleanup.