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

Explain the role of driver in jdbc.

951


What are the steps involved in establishing a connection using jdbc in java?

944


What is jdbc template?

926


What is a jdbc connection string?

891


How can you create jdbc statements?

927


How to check jdbc connection in linux?

981


What is jdbc odbc?

949


How to connect multiple database in jdbc?

1021


What are jdbc and its components?

935


Why are we using blob datatypes in jdbc?

1021


What is jsp and jdbc?

872


What do you understand by DDL and DML statements?

886


Explain about Join?

974


What are the measures to connect to the db using jdbc?

973


What is the function of drivermanager class?

1054