How do find debugging problems related to JDBC API?



How do find debugging problems related to JDBC API?..

Answer / aditi

A good way to find out what JDBC calls are doing is to
enable JDBC tracing. The JDBC trace contains a detailed
listing of the activity occurring in the system that is
related to JDBC operations.

If you use the DriverManager facility to establish your
database connection, you use the DriverManager.setLogWriter
method to enable tracing of JDBC operations. If you use a
DataSource object to get a connection, you use the
DataSource.setLogWriter method to enable tracing. (For
pooled connections, you use the
ConnectionPoolDataSource.setLogWriter method, and for
connections that can participate in distributed
transactions, you use the XADataSource.setLogWriter method.)

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More JDBC Interview Questions

What is Type-1 Driver and when this driver is used?

3 Answers  


How to connect html page to database using jdbc?

0 Answers  


If iam using JDBC API, do I also have to use ODBC?

1 Answers  


what is the meaning of following code snippets Class c=class.forName(driverClassName); Driver d=(driver)c.newInstance();

1 Answers  


How the JDBC application works?

0 Answers  


what is connection pooling?

6 Answers   Wipro,


What is the query used to display all tables names in SQL Server (Query analyzer)?

0 Answers  


Write an sql to find all records having all upper case alphanumeric characters in a field ?

0 Answers  


What are different types of ResultSet?

0 Answers  


What is the use of getGeneratedKeys() method in Statement?

0 Answers  


explain about special characters?

0 Answers  


What is JDBC ResultSet?

0 Answers  


Categories