The following example shows how you would specify the template for Oracle's reference implementation:
-Djava.rmi.activation.port=#
Be sure that this is the same port used by the rmid you are connecting to.