Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How do I load a database driver with JDBC 4.0 / Java 6?

996


Expalin the method of calling a stored procedure from jdbc.

976


What does the connection object represents?

1068


Where jdbc drivermanager class is used?

974


What are the 4 types of jdbc drivers?

1019


Explain the locking system in jdbc?

952


What are the different types of locking in JDBC?

1015


Where is jdbc url mysql?

995


What is jdbc odbc?

996


How can you create jdbc statements?

981


Is jdbc open source?

872


What is metadata in java programming?

1030


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

1031


What is a jdbctemplate?

941


Why are we using blob datatypes in jdbc?

1091