A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
tomcat JNDI bug????
Joined: Jun 12, 2004
Apr 07, 2005 11:00:00
i use JNDI to read some configuration variables... but problem is
that sometimes it works but sometimes it does not (without reconfiguring
in between). I use 5.5.7 on
1.5.0_02 (and I tried this on
Windows and Linux).
Here is definition in application's web.xml file:
I try to read it with:
Context initCtx = new
Context envCtx = (Context) initCtx.lookup("java:comp/env");
uri = (
sometimes it is ok... but sometimes I got next message:
Name java:comp is not bound in this Context
I do not know if this is some misconfiguration or what?
I agree. Here's the link:
subject: tomcat JNDI bug????
getInitParameter with a MessageDrivenBean
Difference between resource-ref and env-entry
Issue w/ accesing file from a Servlet
Lookup strings question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014