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

What are the differences between setmaxrows(int) and setfetchsize(int)?

1077


How can I determine the isolation levels supported by my DBMS?

1000


What is a rollback in jdbc?

954


What is the use of getGeneratedKeys() method in Statement?

1029


How can we store and retrieve images from the database?

978


Why is odbc needed?

920


What do you mean by jdbc batch processing and what are the advantages of using jdbc batch processing?

995


Explain in detail about JDBC and its general features?

973


What is meant by jdbc and odbc?

914


Where can I find info, frameworks and example source for writing a JDBC driver?

953


Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?

1103


What are the ddl statements?

867


What are types of resultset?

1004


What is jdbc connection?

1101


Why prepared statements are faster?

968