Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDBC connection timeout - how?

323846Aug 26 2002
When I get a JDBC connection from the oracle driver to run any Stored Procedure, how can I specify the timeout from java so that after that time of period if the SP execution is still not complete java will get a time out. Basically I do not want to hold the connection forever if there is any problem in SP level.
Any sample code or link??

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 23 2002
Added on Aug 26 2002
0 comments
393 views