Package org.jboss.util.deadlock
Class ApplicationDeadlockException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jboss.util.deadlock.ApplicationDeadlockException
-
- All Implemented Interfaces:
java.io.Serializable
public class ApplicationDeadlockException extends java.lang.RuntimeException
This exception class is thrown when application deadlock is detected when trying to lock an entity bean This is probably NOT a result of a jboss bug, but rather that the application is access the same entity beans within 2 different transaction in a different order. Remember, with a PessimisticEJBLock, Entity beans are locked until the transaction commits or is rolled back.- Version:
- $Revision$
Revisions:
2002/02/13: billb
- Initial revision
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
retry
private static long
serialVersionUID
The serialVersionUID
-
Constructor Summary
Constructors Constructor Description ApplicationDeadlockException()
ApplicationDeadlockException(java.lang.String msg, boolean retry)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ApplicationDeadlockException
isADE(java.lang.Throwable t)
Detects exception contains is or a ApplicationDeadlockException.boolean
retryable()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
The serialVersionUID- See Also:
- Constant Field Values
-
retry
protected boolean retry
-
-
Method Detail
-
retryable
public boolean retryable()
-
isADE
public static ApplicationDeadlockException isADE(java.lang.Throwable t)
Detects exception contains is or a ApplicationDeadlockException.- Parameters:
t
-- Returns:
- true when it is a deadlock
-
-