tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luke Studley <>
Subject RE: Tomcat 4.0.1+JBOSS naming problem/bug?
Date Sun, 06 Jan 2002 20:07:43 GMT

This is the basics of how to do it in code:

Properties props = new Properties();
props.setProperty("java.naming.factory.url.pkgs",  "org.jboss.naming");
props.setProperty("", "yes");
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 file that may have worked for you in Tomcat 3. All total
guess work of course!!]


-----Original Message-----
From: Frank Morton [] 
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?



To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message