geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toby cabot <>
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", "");
        p.put("", "myuser");
        p.put("", "mypass");
        return new InitialContext(p);

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

Thanks again,

View raw message