Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 17290 invoked from network); 6 Jan 2002 20:10:00 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 6 Jan 2002 20:10:00 -0000 Received: (qmail 3534 invoked by uid 97); 6 Jan 2002 20:09:43 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 3518 invoked by uid 97); 6 Jan 2002 20:09:42 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 3507 invoked from network); 6 Jan 2002 20:09:41 -0000 Message-ID: <9FDE13142FC0D3118B5100508BE7C43929EEBB@certechexc3.cerillion.com> From: Luke Studley To: 'Tomcat Users List' Subject: RE: Tomcat 4.0.1+JBOSS naming problem/bug? Date: Sun, 6 Jan 2002 20:07:43 -0000 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This is the basics of how to do it in code: Properties props = new Properties(); props.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); props.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming"); props.setProperty("java.naming.rmi.security.manager", "yes"); bindProps.setProperty(Context.PROVIDER_URL,"localhost:1033"); InitialContext ctx = new InitialContext(bindProps); [Dodgy Aside: I'm totally not sure here as I never used Tomcat 3 and am new to Tomcat 4 - but I think I might have read somewhere that Tomcat 3 did not have a JNDI implementation. Whereas JNDI is now the Servlet spec recommended way of binding to environment/servlet configuration etc. If not that then maybe the new JNDI in tomcat 4 overrides any settings in your jndi.properties file that may have worked for you in Tomcat 3. All total guess work of course!!] Luke -----Original Message----- From: Frank Morton [mailto:fmorton@base2inc.com] Sent: 06 January 2002 19:54 To: Tomcat Users List Subject: Re: Tomcat 4.0.1+JBOSS naming problem/bug? > How are you specifying the JNDI connection settings for JBoss? > > If you are just doing > InitialContext context = new InitialContext(); > > Won't you get a Tomcat provided JNDI implementation - not a JBoss one? That is what I am doing, which worked with tomcat 3.2.x, but not with 4.0.1. What is the right way to get the jboss context from within tomcat? Thanks. Frank -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: