/* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jboss.util.deadlock; import java.rmi.RemoteException; /** * 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 Bill Burke * * @version $Revision: 1.1.2.1 $ * *

Revisions:
*

2002/02/13: billb *

    *
  1. Initial revision *
*/ public class ApplicationDeadlockException extends RemoteException { protected boolean retry = false; public ApplicationDeadlockException() { super(); } public ApplicationDeadlockException(String msg, boolean retry) { super(msg); this.retry = retry; } public boolean retryable() { return retry; } }