i'm not exactly sure that this is the correct place to ask this, but the system uses hibernate (3.2.0.x) for all database transactions and I'm trying to get an error or exception to be thrown.
I'm trying to fix a server recovery issue where we lose the database connection. To reproduce my problem, I have a large table that I query and sort (in a remote oracle box), then in the middle of the transaction, I pull the plug to internet connection.
My problem is that Linux (ubutu 6.10 edgy-eft all updates installed to date) will not recognize that the connection has been lost in teh middle of the transaction and the Application Hangs.
Once I plug the box back in, my interceptors will catch the timeout, and throw the appropriate errors, but I need the system to catch the lost connection either immediately or quickly adn then throw the errors.
has anyone else ran into this problem and if so how did you fix it?
|