users@glassfish.java.net

Re: Standalone EJB Client & SSL

From: <glassfish_at_javadesktop.org>
Date: Tue, 02 Mar 2010 08:02:45 PST

Thank you for your reply.

When I attempt to use port 3820 I get an exception: "org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 208 completed: Maybe"

Setting the log level to "Finest" for javax.enterprise.resource.corba, the server shows me a whole load of exceptions, but the clue seems to be: "Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?"

I tell my client to use an SSL port (3820), but I suspect it is attempting to talk 'plaintext' on that port.
[b]How can I tell my client to use SSL? [/b]

Properties props = new Properties();
props.setProperty("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory");
props.setProperty("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");
props.setProperty("java.naming.factory.state", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
props.setProperty("org.omg.CORBA.ORBInitialPort", "3820");
Context ctx = new InitialContext(props);
...and then the ctx.lookup

[u][/u]
[Message sent by forum member 'ajvok' (ajvok1_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=389638