org.jboss.ejb.plugins.lock
public class: ApplicationDeadlockException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.rmi.RemoteException
org.jboss.ejb.plugins.lock.ApplicationDeadlockException
All Implemented Interfaces:
Serializable
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.
- author:
< - a href="bill@burkecentral.com">Bill Burke
- version:
$ - Revision: 1.2.4.2 $
Revisions:
2002/02/13: billb
- Initial revision
| Field Summary |
|---|
| protected boolean | retry | |
| Method from org.jboss.ejb.plugins.lock.ApplicationDeadlockException Summary: |
|---|
|
isADE, retryable |
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Method from org.jboss.ejb.plugins.lock.ApplicationDeadlockException Detail: |
public static ApplicationDeadlockException isADE(Throwable t) {
while (t!=null)
{
if (t instanceof ApplicationDeadlockException)
{
return (ApplicationDeadlockException)t;
}
else if (t instanceof RemoteException)
{
t = ((RemoteException)t).detail;
}
else if (t instanceof EJBException)
{
t = ((EJBException)t).getCausedByException();
}
else
{
return null;
}
}
return null;
}
Detects exception contains is or a ApplicationDeadlockException. |
public boolean retryable() {
return retry;
}
|