Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 20172 invoked from network); 15 Jul 2004 16:27:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Jul 2004 16:27:23 -0000 Received: (qmail 89844 invoked by uid 500); 15 Jul 2004 16:27:14 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 89614 invoked by uid 500); 15 Jul 2004 16:27:12 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@geronimo.apache.org Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 89600 invoked by uid 99); 15 Jul 2004 16:27:12 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received: from [207.172.4.62] (HELO smtp03.mrf.mail.rcn.net) (207.172.4.62) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 15 Jul 2004 09:27:07 -0700 Received: from 207-172-209-229.c3-0.ded-ubr1.sbo-ded.ma.cable.rcn.com ([207.172.209.229] helo=mail.caboteria.org) by smtp03.mrf.mail.rcn.net with esmtp (Exim 3.35 #7) id 1Bl94Y-00068M-00 for dev@geronimo.apache.org; Thu, 15 Jul 2004 12:27:02 -0400 Received: by mail.caboteria.org (Postfix, from userid 1000) id 8C5F7C41A8; Thu, 15 Jul 2004 12:27:50 -0400 (EDT) Date: Thu, 15 Jul 2004 12:27:50 -0400 From: toby cabot To: dev@geronimo.apache.org Subject: Re: EJB lookup in JNDI? (that works) Message-ID: <20040715162750.GA11660@caboteria.org> References: <20040714232358.GA28583@caboteria.org> <40F5C9E3.5070606@gluecode.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040523i X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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