Posted Saturday, January 23, 2010 @ 09:51:15
I think your jdbc drivers mught provide a timeout mechanism. That would be the best option.
If not using database change listener, you can catch the changes and update database yourself within a thread. you can set a timeout in thread.
another option is is setset autocommit false and call commit changes within a thread. I am not sure how well this will work.