Class 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

    1. Initial revision
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean retry  
      private static long serialVersionUID
      The serialVersionUID
    • 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()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        The serialVersionUID
        See Also:
        Constant Field Values
      • retry

        protected boolean retry
    • Constructor Detail

      • ApplicationDeadlockException

        public ApplicationDeadlockException()
      • ApplicationDeadlockException

        public ApplicationDeadlockException​(java.lang.String msg,
                                            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