geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toby cabot <t...@caboteria.org>
Subject Re: EJB lookup in JNDI? (that works)
Date Thu, 15 Jul 2004 16:27:50 GMT
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

Mime
View raw message