• Post Reply Bookmark Topic Watch Topic
  • New Topic

Logging of SQL Queries with J2EE SDK  RSS feed

 
Eru Stone
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to see or log the queries that are sent
to the database (i'm using oracle)?
Eru
 
Bhagvan Kommadi
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

javax.sql.DataSource has setLogWriter method . this may log
the sql queries.
DriverManager has setLogWriter method.
try this out if it works.
Bhagvan K
SCJP, SCJA PartI , IBM 483
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!