This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Query Regarding Connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Query Regarding Connection" Watch "Query Regarding Connection" New topic

Query Regarding Connection

Kalai Selvan
Ranch Hand

Joined: Jul 07, 2004
Posts: 79
Is it possible to check how long a connection is idle in jdbc.
Thanks in advance.

Kalai Selvan T.
[ July 28, 2004: Message edited by: Bear Bibeault ]
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30050

No, JDBC doesn't provide this. You could create a wrapper for your connections that adds this functionality.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
jQuery in Action, 2nd edition
subject: Query Regarding Connection
Similar Threads
J2ee app gets stuck at a stored procedure call
enterprise application with many users
Try/catch variable scope
jdo and eclipse