Child pages
  • InitialContext configuration
Skip to end of metadata
Go to start of metadata

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); 
  • No labels