Standalone EJB Client & SSL
I just got my standalone EJB client to work over SSL.
My setup is described below.
The SSL traffic is on port 3820.
if I use tcpdump (I'm on linux) to monitor the traffic coming to/from 3700 (non SSL port) I see that each time I do a ctx.lookup() there is activity on this port.
My guess (please correct me) is that an initial attempt is made on non-SSL, but the config causes this attempt to fail, then somehow, the server tells the client (guessing this) to retry using SSL on port 3820.
I'd really appreciate any explanation of what is really happening here.
Anyway, it works. ***But***, I really would like it to work on SLL from the get-go.
I want to avoid all non-SSL traffic - perhaps disable port 3700.
Is this possible?
[ Setting props.setProperty("org.omg.CORBA.ORBInitialPort", "3820"); Did not work.]
Thanks for any advice.
Properties props = new Properties();
System.setProperty("javax.net.ssl.trustStore", "myTrustStore") ;
Context ctx = new InitialContext(props);
ColourManagerBeanRemote cm = (ColourManagerBeanRemote)ctx.lookup("MyTestBean");
The sun-ejb-jar.xml on the server: