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
What do you mean by metadata and why we are using it?
What is metadata in programming?
What causes no suitable driver error?
What are the differences between resultset and rowset?
What is an escape syntax?
Is jdbc a middleware?
What are the different classes through which JDBC represents statements?
What are the types of jdbc drivers that exist?
What are different parts of a url?
What does the jdbc driver interface do?
What are the different types of drivers under jdbc?
What is the fastest type of JDBC driver?
Explain the role of driver in jdbc.
What is the purpose of jdbc?
Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?