Re: JMX and SSL
Luis-Miguel Alventosa <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Organization | Sun Microsystems, Inc. |
| Message-ID | <[email protected]> |
Hi Ron,
When you specify the SSL RMI Socket Factories in the RMIConnectorServer map,
SSL is only used for the RMI invocations on the RMIServer and RMIConnection
remote objects.
In order to perform SSL on the JNDI lookup you have to create your RMI registry
by supplying the SSL RMI Socket Factories too. The client application will
then use SSL to carry out the JNDI lookup.
See java.rmi.registry.LocateRegistry.createRegistry(int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
Regards,
Luis
> Ron Vered wrote:
>
> Eamonn,
>
> This is with regard to RMI transport, specifically RMI JNDI.
>
> When a JMX client connects to JMX server (in above scenario), there are
> actually 2 connections made, 1 to the RMI naming service and the other
> to the exported RMI object.
> While there is a way to provide socket factories for RMI transport for
> the exported RMI object, I am not aware of a way to specify socket
> factories for the JNDI lookup.
>
> If I am not mistaken, you need to specify socket factory on the client
> before you do the lookup since it's a boot-strap issue.
>
> If SSL is required for both the JNDI lookup and for the RMI invocation
> (and not only for the latter connection), how can this be done?
>
> Regards,
> Ron.
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php