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
How do I load a database driver with JDBC 4.0 / Java 6?
Expalin the method of calling a stored procedure from jdbc.
What does the connection object represents?
Where jdbc drivermanager class is used?
What are the 4 types of jdbc drivers?
Explain the locking system in jdbc?
What are the different types of locking in JDBC?
Where is jdbc url mysql?
What is jdbc odbc?
How can you create jdbc statements?
Is jdbc open source?
What is metadata in java programming?
Why do I get UnsatisfiedLinkError when I try to use my JDBC driver?
What is a jdbctemplate?
Why are we using blob datatypes in jdbc?