I have to test ejb's deployed on a glassfish 3.1.2.2 running on a separated machine.
My client is like that
Properties p = new Properties();
p.setProperty("java.naming.factory.initial","com.sun.enterprise.naming.SerialInitContextFactory");
p.setProperty("org.omg.CORBA.ORBInitialHost","x.x.x.x");
p.setProperty("org.omg.CORBA.ORBInitialPort","3700");
Context context = new InitialContext(p);
Test service = (Test) context.lookup("java:global/base-ejb-1.0/TestImpl");
If I download and extract glassfish on my pc I can add
glassfish-client-module.jar
to my build path and it's working fine.
But how can I do if I don't have glassfish on my pc.
Impossible to find a maven dependency with the right libraries. Always something missing or exception.