-
Mar 2nd, 2010, 10:34 PM
#1
Require timeout functionality using SingleConnectionDataSource
We have an application that is using SingleConnectionDataSource to connect to an external db. In production, sometimes, the remote db stops responding which causes our connections to block on the read indefinitely.
Is there a way to force the termination of the read and close the connection after x amount of time? We currently have tried an implementation using Future to set a timeout but the problem is that the connection is still blocking and can't be closed until the read actually completes.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules