Thanks, Dain.  That's the ticket.  

For the benefit of archive-reading newbies (like me!), here's the
client-side code:

    InitialContext newInitialContext() throws NamingException {
        Properties p = new Properties();
        p.put("java.naming.factory.initial", 
"org.openejb.client.RemoteInitialContextFactory");
        p.put("java.naming.provider.url", "127.0.0.1:4201");
        p.put("java.naming.security.principal", "myuser");
        p.put("java.naming.security.credentials", "mypass");
        
        return new InitialContext(p);
    }

For some reason I can't pass the java.naming.security.principal
property in from the system properties, openEJB complains that it's
null, but it works fine if I set it in Java.

Thanks again,
Toby

Reply via email to