/*
 * JBoss, the OpenSource J2EE webOS
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package org.jboss.test.retry.interfaces;

import javax.ejb.*;
import java.rmi.*;

/**
 * @author Marc Fleury
 */ 
public class RetryHandler implements org.jboss.ejb.plugins.TxRetryExceptionHandler
{
   public boolean retry(Exception ex)
   {
      System.out.println("**** testing retry ****");
      if (ex instanceof RetryException)
      {
         RetryException.wasRetried = true;
         return true;
      }
      return false;
   }
}