tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lindomar" <lindomar.si...@bol.com.br>
Subject Datasource
Date Sun, 29 Sep 2002 18:40:53 GMT
Hi everybody!
I'm using this code for connect my app in tomcat 4.1:
$$$$$$$$
...
Connection conn = null;
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource)ic.lookup("myjndi")
     conn = ds.getConnection();
...
$$$$$$$$$
I configurate my connection in Adminitration Tool of tomcat. 
For JNDI Name i set to "myjndi"

Until here ok, but when i start my app, appears exception: 
Name myjndi is not bound in this Context 

Any idea for this problem?

Thanks in advanced.



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message