How do find debugging problems related to JDBC API?
Answer Posted / 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 View All Answers
Explain the role of driver in jdbc.
What are the steps involved in establishing a connection using jdbc in java?
What is jdbc template?
What is a jdbc connection string?
How can you create jdbc statements?
How to check jdbc connection in linux?
What is jdbc odbc?
How to connect multiple database in jdbc?
What are jdbc and its components?
Why are we using blob datatypes in jdbc?
What is jsp and jdbc?
What do you understand by DDL and DML statements?
Explain about Join?
What are the measures to connect to the db using jdbc?
What is the function of drivermanager class?