Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 26618 invoked from network); 9 Dec 2005 19:35:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Dec 2005 19:35:23 -0000 Received: (qmail 61973 invoked by uid 500); 9 Dec 2005 19:35:20 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 61952 invoked by uid 500); 9 Dec 2005 19:35:20 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 61941 invoked by uid 99); 9 Dec 2005 19:35:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2005 11:35:20 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [68.142.207.211] (HELO web32501.mail.mud.yahoo.com) (68.142.207.211) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 09 Dec 2005 11:35:19 -0800 Received: (qmail 15143 invoked by uid 60001); 9 Dec 2005 19:34:58 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=1ZOBZ5IdNBEb8hqwAAPNAvDxpjaS0AI5Q0PkkZQASCgyAlv8Mm2JiDM/77dKanMKOF4FQwChV4rfXnbgIcsDShNv8BXAeCoNCu7AxDmpyJ1MSRt03Sf4y8OWX34Kw20med5kqrlPjda68SRrkJF8q7U27xw4D9Lon73jxmXGoME= ; Message-ID: <20051209193458.15141.qmail@web32501.mail.mud.yahoo.com> Received: from [12.98.254.3] by web32501.mail.mud.yahoo.com via HTTP; Fri, 09 Dec 2005 11:34:58 PST Date: Fri, 9 Dec 2005 11:34:58 -0800 (PST) From: Dan Meany Subject: EJB global JNDI entries To: user@geronimo.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I have an app that works in JBoss, WebSphere and Weblogic with the same .ear binary. I am having trouble with Geronimo either not seeing or not publishing the session EJBs in JNDI. There does not appear to be anything in the global JNDI tree. With JBoss, I don't have to use any vendor-specific xml files and it creates some JNDI entries automatically for the EJBs. My test openejb-jar.xml looks like: LoginEJB LoginEJB I am attempting to print out the JNDI tree with this code (works with JBoss, but only one JMX item is returned for Geronimo): logger.debug("----- Contents of Global JNDI namespace -----"); printjnditree(""); logger.debug("----- Contents of 'java:' JNDI namespace -----"); printjnditree("java:"); logger.debug("----------------------------------------------"); private static void printjnditree(String ns) { try { printjnditree(ns, new InitialContext(), ""); } catch (Exception e) { logger.error(e); } } private static void printjnditree(String name, Context ctx, String indent) { try { NamingEnumeration n = ctx.listBindings(name); while (n.hasMore()) { try { Binding b = (Binding)n.next(); String bname = b.getName(); String clsname = b.getClassName(); Class cls = b.getClass(); Object o = b.getObject(); logger.debug(indent + bname + " (class: "+clsname+")"); if (clsname.equals("javax.naming.Context") || o instanceof javax.naming.Context) { if (!name.endsWith(":")) name = name + "/"; printjnditree(name + bname, ctx, indent + " "); } } catch (Exception e) { //System.out.println(""+e); } } } catch (Exception e) { //System.out.println(""+e); } }