This page provides details and code for how it can be done. There are probably many other examples online of how to do this, and I seem to recall that the O'Reilly "Java RMI" book also provided examples of RMI over SSL.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.