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?



How do find debugging problems related to JDBC API?..

Answer / 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

More JDBC Interview Questions

What do you understand by jdbc driver and explain its types?

0 Answers  


What is de-normalization?

1 Answers  


Explain the locking system in jdbc?

0 Answers  


What are statements in JAVA ?

1 Answers   CTS,


What is com mysql jdbc driver?

0 Answers  


How can I get information about foreign keys used in a table?

0 Answers  


How can you know about drivers and database information ?

0 Answers  


What are different types of transactions?

2 Answers   HCL,


Is the JDBC-ODBC Bridge multi-threaded?

2 Answers   Wipro,


What do you mean by batch processing in jdbc?

0 Answers  


What is a jdbc connection pool?

0 Answers  


signature of init method?

2 Answers  


Categories