wood burning stoves 2.0*
The moose likes JDBC and the fly likes How to retrieve what SQL(s) a java.sql.Connection is running ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to retrieve what SQL(s) a java.sql.Connection is running ?" Watch "How to retrieve what SQL(s) a java.sql.Connection is running ?" New topic
Author

How to retrieve what SQL(s) a java.sql.Connection is running ?

First Light
Greenhorn

Joined: Nov 27, 2000
Posts: 14
I've written a custom connection pooling package and I would like to display what each connection in the pool is currently running(Information on the session associated with this connection). I would like to display what SQL(s) this connection is running, how long has it been running and of course handles to those statements so that I can call statement.cancel() to stop them if needed. Some sort of java version of oracletool package which was written in perl.
I will appreciate if anybody can offer some suggestions and/or examples.
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to retrieve what SQL(s) a java.sql.Connection is running ?
 
Similar Threads
Passing Array as a parameter to Stored procedures
Best way to use connection
SELECT Query Problem
gooey
Author question: JDBC in Java Code.