Forums Register Login

Java Oracle JDBC and Linux KeepAlive setting

+Pie Number of slices to send: Send
Here is the scenairo:

I got two PCs, one is Linux(RH4), which is installed a Java Oracle related application, and the other is Windows(2000), where the Oracle database stayed.

I want response quickly when the network between those PCs is suddenly down. So i notice that linux have KeepAlive attribute which can solve this.

I set the following KeepAlive attributes:



and also i add the "ENABLE=BROKEN" property to JDBC driverUrl to enable application to support TCP KeepAlive of OS.

but the result is not what i expected. The application just hangs and didn't report exception until around 15 mins after i cut the network.

What's yours idea? is KeepAlive set correctly? or how do i check if the KeepAlive package is sent?
+Pie Number of slices to send: Send
Welcome to JavaRanch.

I'm not sure what those "keep alive" settings are there for, but I doubt that they do what you think they do. Have you seen any documentation that describes how and when to use these? And what is "ENABLE=BROKEN" supposed to achieve?
Hey, check out my mega multi devastator cannon. It's wicked. It makes this tiny ad look weak:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 5071 times.
Similar Threads
Java DB - which driver to use?
How to connect to Database Server on another machine ?
Oracle JDBC Connectivity problem
Oracle OC4J JMS: Linux OC4J JNDI Client will not timeout to Linux OC4J Server
Socket connections on LAN?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:19:03.