This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Query Regarding Connection" Watch "Query Regarding Connection" New topic
Author

Query Regarding Connection

Kalai Selvan
Ranch Hand

Joined: Jul 07, 2004
Posts: 79
Hi,
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32628
    
215

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


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Query Regarding Connection
 
It's not a secret anymore!