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 a PreparedStatement?

3 Answers   Infosys,


How can I create a custom RowSetMetaData object from scratch?

0 Answers  


Explain the difference between inner and outer join ?

0 Answers  


What is odbc and jdbc drivers?

0 Answers  


What are devices?

0 Answers  






How do we load the drivers?

0 Answers  


What is static Synchronized method in JDBC API? Give an example?

3 Answers   3 Edge Solutions, R Systems, Sirvisetti Global Services,


How to achieve JDBC Connection Pooling using JDBC DataSource and JNDI in Apache Tomcat Server?

0 Answers  


What port does jdbc use?

0 Answers  


What is the benefit of having jdbcrowset implementation?

0 Answers  


What is the role of jdbc drivermanager class?

0 Answers  


any one can explain about policy file rule? when i connect database with applet then ther is no compile time error but the run time error is occureed.i.e access is denied.policy file rule is related to this problem.

0 Answers  


Categories