Hello,

It takes me 800ms to get a Oracle connection, below the code in a 
TestBean's method that highlights it.

I guessed there was a connection pooling for DataSource, Am I missing 
something ? If so how should I proceed ?

Thanks in advance, 

Sebastien


code in test bean:
  long start = System.currentTimeMillis();
  for (int i=0; i<100; i++) {
    ((DataSource) 
ct.lookup("java:comp/env/jdbc/OracleDB")).getConnection();
  }
  long end = System.currentTimeMillis();
  // end -start --> 80000 ms !!! which is not a connection pooling :-)


My Driver is :
  oracle.jdbc.driver.OracleDriver








--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to