Re: Different Sockets on Different Ports

Robert DiFalco <[email protected]> Thu, 19 Mar 2009 15:00:58 -0700
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
Sorry, the important part I forgot to mention -- without having multiple
instances for each remote object. For example if I have an object called
Server, I would like there to be only one instance of it even if both
protocols are involved.=20

Can I just export the same instance twice with different factories?=20

-----Original Message-----
From: Robert DiFalco [mailto:[email protected]]=20
Sent: Thursday, March 19, 2009 1:57 PM
To: [email protected]
Subject: Different Sockets on Different Ports

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

=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