tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aljosa Mohorovic" <>
Subject tomcat administration data sources/jndi
Date Fri, 02 Feb 2007 17:33:36 GMT
i created jndi datasource in tomcat administration (Resources > Data
Sources > "JNDI Name"=test) and failed to access it in code:

InitialContext initialContext = new InitialContext();
DataSource ds = (DataSource) initialContext.lookup("java:comp/env/jdbc/zbi");

i get this exception:
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

any help is appreciated.


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message