read this
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> Date: Wed, 24 Sep 2008 18:19:38 +0530
> Subject: Some Prilim questions
> 
> 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
> 
> 

_________________________________________________________________
See how Windows Mobile brings your life together—at home, work, or on the go.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/

Reply via email to