tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonghui Chen <>
Subject About jndi
Date Fri, 20 Jul 2001 15:49:47 GMT
Hi all,

I have just set a env-entry in web.xml, how can I use
jndi to find it a java:comp/env/test?

      <env-entry-value>this is a

I just use 
InitialContext ic = new InitialContext();
Object obj = ic.lookup("java:comp/env/test");

but it throws a exception says that I have not set the
jndi factory. Could you have me? 

Thanks you first.

Do You Yahoo!? 登录免费雅虎电邮!

<font color=#6666FF>无聊?郁闷?高兴?没理由?都来聊天吧!</font>――


View raw message