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

Why do I get UnsatisfiedLinkError when I try to use my JDBC driver?

0 Answers  


What is odbc and jdbc in dbms?

0 Answers  


What is 2 phase commit?

0 Answers  


How to find the column count in resultset?

1 Answers   Wipro,


What is resultset?

0 Answers  






How can we retrieve the file in the oracle database?

0 Answers  


I have getting problem to calling stored procedure from Mysql through JSP. Please help me.

1 Answers  


What are devices?

0 Answers  


How warnings are retrieved in JDBC?

1 Answers  


What are the common JDBC problems that you got and how do you solved them?

0 Answers   Wipro,


how to prevent finally block from execution

4 Answers   Bosch,


When you will get error like ?No suitable driver??

2 Answers  


Categories