tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karthikn <karthik.nanjang...@xius-bcgi.com>
Subject Some Prilim questions
Date Wed, 24 Sep 2008 12:49:38 GMT
Hi

Spec:
O/s :  Unix HP 11i
Tomcat : 6.0.18
J2sdk : 1.6
DB : Oracle 10g

Question

1)       Which is faster JNDI Based Connection pool / ordinary JDBC based connection / close
?

2)       In JNDI / context based  Connection pool  for the code given below

       InitialContext ic = new InitialContext();
       DataSource ODS =(javax.sql.DataSource)ic.lookup("java:comp/env/jdbc/MYSCEMA");
       Connection conn = ODS.getConnection()

       // Insert /Update /Delete/...

       conn.close() --> What does this code do ? (return connection to pool or close the
connection )

    Googled /yahooed but non correct answers ....

Please advice
Karthik



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