What driver should I use for scalable Oracle JDBC applications?

Joe Sam Shirah

Sun recommends using the thin ( type 4 ) driver.

  • On single processor machines to avoid JNI overhead.
  • On multiple processor machines, especially running Solaris, to avoid synchronization bottlenecks.
For more information, see My application uses a database and doesn't seem to scale well. What could be going on? on the FREQUENTLY ASKED QUESTIONS ABOUT THE JAVA HOTSPOT VIRTUAL MACHINE page.