Not really related to your question, but to your code: The use of the synchronized as you do it, is not recommended.
Don't try to optize the synchnized block by wrapping it in a if. There is no garantee that this will work as intended. Have a look at the references in: http://www.javaworld.com/javaworld/javaqa/2002-04/01-qa-0412-doublelock.html > -----Original Message----- > From: Jacob Kjome [mailto:hoju@;visi.com] > Sent: Monday, October 28, 2002 3:08 PM > To: Tomcat Users List > Subject: DBCP speed of lookup -vs- stored reference to Datasource? > > if (DS_INITIALIZED.equals(Boolean.FALSE) || ds == null) { > synchronized (DS_INITIALIZED) { > if (DS_INITIALIZED.equals(Boolean.FALSE) || ds == null) { > } > } > } -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>