This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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
 
 
subject: How to retrieve what SQL(s) a java.sql.Connection is running ?
 
It's not a secret anymore!