Connecting Java se Client to Glassfish

Posted by Henrik Bierbum Bacher on Stack Overflow See other posts from Stack Overflow or by Henrik Bierbum Bacher
Published on 2009-08-15T10:21:49Z Indexed on 2010/05/01 3:07 UTC
Read the original article Hit count: 287

Filed under:
|
|

We are having some difficulties connecting our Java SE standalone client with the EJB module deployed on a remote GlassFish server.

Pointers to how we are supposed to connect our client would be appreciated.

The client code we currently has to get the initial context:

props.setProperty("org.omg.CORBA.ORBInitialHost", "*remotehost*");
props.setProperty("org.omg.CORBA.ORBInitialPort", "portNumber");

javax.naming.InitialContext ic = new javax.naming.InitialContext(props);

*We have tried several different port numbers; 3700, 7676, 8080..

The closest we are getting, got us the error: "Error in GIOP magic".

I read that jms are using port 7676 as a broker port for a bunch of dynamically generated ports, but can't figure out how to specify those ports in order to create proper port-forwards.

© Stack Overflow or respective owner

Related posts about java

Related posts about j2ee