Different Sockets on Different Ports

Robert DiFalco <[email protected]> Thu, 19 Mar 2009 13:56:51 -0700
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
I have a scenario where I need different clients to use different
protocols. The simplest way to think about this is that I have some
clients that will use SSL and others that will not. I assumed I could
create two different RmiSocketFactories and just have them listen on
different ports - SSL on one and plain on another and just configure the
clients appropriately to communicate with the correct port based on its
protocol. However, since these factories act as a singleton in the Java
implementation, I have not been able to find a straight forward way to
do this. Any pointers? Different approaches?

TIA,=20

Robert

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html