JBoss 4.0.2 fails to detect deadlocks. It hangs(waits for a transaction to complete) for the time specified as ejbtimeout and than throws a Timeout exception.
I developed some deadlock recovery mechanism but what can i do if Jboss doesn't tell me about an occurrence of an ApplicationDeadlockException. I have a timeout of 300 seconds so it hangs for 5 minutes and than throws a transactionRolledBack Exception. I'm pretty sure that the reason for timeout is deadlock.
I can not restructure the code to prevent deadlocks. The only thing i want to do is to handle the situation and save my system from being crashed. After timeout, i am able to handle the system but it takes 5 minutes to recover!!