tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peng Tuck Kwok <pengt...@makmal.net>
Subject Re: javax.naming.NameNotFoundException: Name admin is not bound in this Context
Date Mon, 13 Jan 2003 10:29:03 GMT
print out the connection object. See what it says.
For example in this code fragment :

  datafinder = new JNDIFinder("java:comp/env/jdbc/AthenaDB") ;
  ds = datafinder.ReturnDataSource() ;
  if(ds!=null){
  	Connection conn = ds.getConnection() ;
	System.out.println(conn.toString()) ;


Should result in some text with the word DBCP being printed out along 
with a number.

David Durst wrote:
>>I've used DBCP on 4.1.12 and 4.0.X
> 
> BTW how do you verify that the connections are being pooled????
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message