THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Remote Client
Properties p = new Properties(); p.put("java.naming.factory.initial", "org.openejb.client.RemoteInitialContextFactory"); p.put("java.naming.provider.url", "ejbd://localhost:4201"); InitialContext ctx = new InitialContext(p);
Remote Client with Login params
Properties p = new Properties(); p.put("java.naming.factory.initial", "org.openejb.client.RemoteInitialContextFactory"); p.put("java.naming.provider.url", "ejbd://localhost:4201"); // Minimum required for login p.put("java.naming.security.principal", "myuser"); p.put("java.naming.security.credentials", "mypass"); // Optional param for specifying a specific Geronimo security realm p.put("openejb.authentication.realmName", "TheRealm"); InitialContext ctx = new InitialContext(p);