Q&A

Q1:Which JDBC driver is best for my J2EE applications?
A1: Each JDBC driver has its usage environment and depends on the availability of the driver. Type 2 is best used when high transaction rate is required because itís optimized for the native DBMS API. Type 4 is all Java, and is attractive for most J2EE applications because itís optimized with the underlying JVM technology.
Q2:What is the appropriate sequence to access a DataSource through JDBC?
A2: There are two important group of tasks to be performed: one by the administrator and the other by the application developer.

The administrative tasks are

  • Configure a DataSource and registered it in into the JNDI service provider.

  • Configure a connection pool and map it to the defined DataSource ...

Get Sams Teach Yourself EJB in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.