[jboss-cvs] JBossAS SVN: r65820 - in trunk/testsuite/src/main/org/jboss/test: dtm/interfaces and 6 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Oct 3 18:52:27 EDT 2007


Author: reverbel
Date: 2007-10-03 18:52:26 -0400 (Wed, 03 Oct 2007)
New Revision: 65820

Removed:
   trunk/testsuite/src/main/org/jboss/test/dtm/ejb/AccountEntityBean.java
   trunk/testsuite/src/main/org/jboss/test/dtm/ejb/AccountSessionBean.java
   trunk/testsuite/src/main/org/jboss/test/dtm/ejb/FrontEndBean.java
   trunk/testsuite/src/main/org/jboss/test/dtm/ejb/PassThroughBean.java
   trunk/testsuite/src/main/org/jboss/test/dtm/ejb/WorkerBean.java
   trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/Account.java
   trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/AccountEntityHome.java
   trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/AccountHome.java
   trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/FrontEnd.java
   trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/FrontEndHome.java
   trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/PassThrough.java
   trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/PassThroughHome.java
   trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/Session.java
   trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/Worker.java
   trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/WorkerHome.java
   trunk/testsuite/src/main/org/jboss/test/dtm/test/T01DTMUnitTestCase.java
   trunk/testsuite/src/main/org/jboss/test/dtm/test/T02OTSUnitTestCase.java
   trunk/testsuite/src/main/org/jboss/test/dtm/test/T03MixedDTMOTSUnitTestCase.java
   trunk/testsuite/src/main/org/jboss/test/dtm/test/T04MixedOTSDTMUnitTestCase.java
   trunk/testsuite/src/main/org/jboss/test/dtm/test/T05DTMInterpositionUnitTestCase.java
   trunk/testsuite/src/main/org/jboss/test/dtm/test/T06OTSInterpositionUnitTestCase.java
   trunk/testsuite/src/main/org/jboss/test/dtm/test/T07DTMOTSInterpositionUnitTestCase.java
   trunk/testsuite/src/main/org/jboss/test/dtm/test/T08OTSDTMInterpositionUnitTestCase.java
   trunk/testsuite/src/main/org/jboss/test/dtm/test/T09DTMXAUnitTestCase.java
   trunk/testsuite/src/main/org/jboss/test/dtm/test/T10OTSXAUnitTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/bean/AccountBean.java
   trunk/testsuite/src/main/org/jboss/test/recover/bean/DummyRecoverableProxyService.java
   trunk/testsuite/src/main/org/jboss/test/recover/bean/DummyRecoverableProxyServiceMBean.java
   trunk/testsuite/src/main/org/jboss/test/recover/bean/DummyRecoverableService.java
   trunk/testsuite/src/main/org/jboss/test/recover/bean/FrontEndBean.java
   trunk/testsuite/src/main/org/jboss/test/recover/bean/MockLoggerService.java
   trunk/testsuite/src/main/org/jboss/test/recover/bean/MockLoggerServiceMBean.java
   trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableFactory.java
   trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableFactoryMBean.java
   trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableService.java
   trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableServiceMBean.java
   trunk/testsuite/src/main/org/jboss/test/recover/bean/StatelessFooBean.java
   trunk/testsuite/src/main/org/jboss/test/recover/bean/XAResourceEnlisterBean.java
   trunk/testsuite/src/main/org/jboss/test/recover/bean/XAResourceEnlisterCallerBean.java
   trunk/testsuite/src/main/org/jboss/test/recover/derby/EmbeddedDerbyRecoverable.java
   trunk/testsuite/src/main/org/jboss/test/recover/derby/EmbeddedDerbyRecoverableMBean.java
   trunk/testsuite/src/main/org/jboss/test/recover/interfaces/Account.java
   trunk/testsuite/src/main/org/jboss/test/recover/interfaces/AccountHome.java
   trunk/testsuite/src/main/org/jboss/test/recover/interfaces/DummyRecoverable.java
   trunk/testsuite/src/main/org/jboss/test/recover/interfaces/DummyXAResource.java
   trunk/testsuite/src/main/org/jboss/test/recover/interfaces/DummyXAResourceImpl.java
   trunk/testsuite/src/main/org/jboss/test/recover/interfaces/FrontEnd.java
   trunk/testsuite/src/main/org/jboss/test/recover/interfaces/FrontEndHome.java
   trunk/testsuite/src/main/org/jboss/test/recover/interfaces/MockLogger.java
   trunk/testsuite/src/main/org/jboss/test/recover/interfaces/RemoteDummyRecoverable.java
   trunk/testsuite/src/main/org/jboss/test/recover/interfaces/StatelessFoo.java
   trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlister.java
   trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlisterCaller.java
   trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlisterCallerHome.java
   trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlisterHome.java
   trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleRecoverable.java
   trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleRecoverableMBean.java
   trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleTest.java
   trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleTestMBean.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterOneResourceButNotAllHaveCommittedTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterOneResourceButNotAllHavePreparedTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterTxCommittedTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeTxCommittedTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/JBossCrashRecoveryIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/JBossCrashRecoveryTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoverabilityTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterOneResourceButNotAllHaveCommittedTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterOneResourceButNotAllHavePreparedTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterTxCommittedTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeTxCommittedTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java
   trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase.java
Log:
Delete TM/OTS/DTM code, which now lives in a separate project (at http://xactor.sourceforge.net).


Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/ejb/AccountEntityBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/ejb/AccountEntityBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/ejb/AccountEntityBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,72 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.ejb;
-
-import javax.ejb.CreateException;
-import org.jboss.logging.Logger;
-import org.jboss.test.util.ejb.EntitySupport;
-
-
-/** 
- * Implementation class for the Account entity bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public abstract class AccountEntityBean
-   extends EntitySupport
-{
-   private static transient Logger log = 
-      Logger.getLogger(AccountEntityBean.class);
-
-   public abstract String getName();
-   public abstract void setName(String name);
-   public abstract int getBalance();
-   public abstract void setBalance(int balance);
-   
-   public String ejbCreate(String name, int initialBalance)
-      throws CreateException 
-   {
-      this.setName(name);
-      this.setBalance(initialBalance);
-      log = Logger.getLogger(AccountEntityBean.class.getName() +
-                                 "#" + name);
-      log.debug("ejbCreate(" + name + ", " + initialBalance + 
-                "), ctx=" + entityCtx);
-      return null;
-   }
-
-   public void ejbPostCreate(String name, int initialBalance)
-   {
-   }
-
-   public void addToBalance(int delta)
-   {
-      this.setBalance(this.getBalance() + delta);
-   }
-
-   public void setRollbackOnly()
-   {
-      entityCtx.setRollbackOnly();
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/ejb/AccountSessionBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/ejb/AccountSessionBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/ejb/AccountSessionBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,102 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.ejb;
-
-import javax.ejb.SessionSynchronization;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.util.ejb.SessionSupport;
-
-
-/** 
- * Implementation class for the Account stateful session bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class AccountSessionBean
-   extends SessionSupport
-   implements SessionSynchronization
-{
-   private static transient Logger log = 
-      Logger.getLogger(AccountSessionBean.class);
-   
-   private transient int balanceAtTxStart;
-   private String testName;
-   private int balance;
-
-   public void ejbCreate(String name, int initialBalance)
-   {
-      this.testName = name;
-      this.balance = initialBalance;
-      log = Logger.getLogger(AccountSessionBean.class.getName() + 
-                                 "#" + testName);
-      log.debug("ejbCreate(" + name + ", " + initialBalance + 
-                "), ctx=" + sessionCtx);
-   }
-
-   public void afterBegin()
-   {
-      log.debug("afterBegin()..., balance=" + balance);
-      balanceAtTxStart = balance;
-   }
-   public void afterCompletion(boolean isCommited)
-   {
-      log.debug("afterCompletion(), isCommited=" + isCommited + ", balance=" + 
-                balance + ", balanceAtTxStart=" + balanceAtTxStart);
-      if( isCommited == false )
-      {
-         balance = balanceAtTxStart;
-         log.debug("Rolling balance back to: " + balance);
-      }
-      else
-      {
-         log.debug("Committed updated balance: " + balance);         
-      }
-   }
-   public void beforeCompletion()
-   {
-      log.debug("beforeCompletion(), balance=" + balance + 
-                ", balanceAtTxStart=" + balanceAtTxStart);
-   }
-
-   public int getBalance()
-   {
-      return balance;
-   }
-
-   public void setBalance(int balance)
-   {
-      this.balance = balance;
-   }
-
-   public void addToBalance(int delta)
-   {
-      balance += delta;
-   }
-
-   public void setRollbackOnly()
-   {
-      sessionCtx.setRollbackOnly();
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/ejb/FrontEndBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/ejb/FrontEndBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/ejb/FrontEndBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,236 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.ejb;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.EJBException;
-import javax.ejb.FinderException;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.rmi.PortableRemoteObject;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.dtm.interfaces.Account;
-import org.jboss.test.dtm.interfaces.AccountHome;
-import org.jboss.test.dtm.interfaces.AccountEntityHome;
-import org.jboss.test.util.ejb.SessionSupport;
-
-/** 
- * Implementation class for the FrontEnd stateful session bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class FrontEndBean
-   extends SessionSupport
-{
-   private static transient Logger log = 
-         Logger.getLogger(FrontEndBean.class);
-   
-   private String testName;
-   private Account account1, account2, account3;
-
-   public void ejbCreate(String name)
-   {
-      ejbCreate(name, false);
-   }
-
-   public void ejbCreate(String name, boolean reuseAccounts)
-   {
-      this.testName = name;
-      log = Logger.getLogger(FrontEndBean.class.getName() + "#" + testName);
-      log.debug("ejbCreate(" + name + "), ctx=" + sessionCtx);
-      if (reuseAccounts)
-         findAccounts();
-      else
-         initAccounts();
-
-   }
-
-   public void setBalances(int value1, int value2, int value3)
-   {
-      try
-      {
-         account1.setBalance(value1);
-         account2.setBalance(value2);
-         account3.setBalance(value3);
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public int[] getBalances()
-   {
-      try
-      {
-         int[] balances = new int[3];
-         balances[0] = account1.getBalance();
-         balances[1] = account2.getBalance();
-         balances[2] = account3.getBalance();
-         return balances;
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public void addToBalances(int value)
-   {
-      try
-      {
-         account1.addToBalance(value);
-         account2.addToBalance(value);
-         account3.addToBalance(value);
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-
-   public void setRollbackOnly()
-   {
-      sessionCtx.setRollbackOnly();
-   }
-   
-   public void tellFirstAccountToSetRollbackOnly()
-   {
-      try
-      {
-         account1.setRollbackOnly();
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public void tellSecondAccountToSetRollbackOnly()
-   {
-      try
-      {
-         account2.setRollbackOnly();
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public void tellThirdAccountToSetRollbackOnly()
-   {
-      try
-      {
-         account3.setRollbackOnly();
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   private void initAccounts() 
-   {
-      try 
-      {
-         Object objref;
-         AccountHome home;
-         Context iniCtx = new InitialContext();
-         
-         objref = iniCtx.lookup("java:comp/env/ejb/Account1");
-         home = (AccountHome) 
-            PortableRemoteObject.narrow(objref, AccountHome.class);
-         account1 = home.create(testName + "#account1", 0);
-         
-         objref = iniCtx.lookup("java:comp/env/ejb/Account2");
-         home = (AccountHome) 
-            PortableRemoteObject.narrow(objref, AccountHome.class);
-         account2 = home.create(testName + "#account2", 0);
-         
-         objref = iniCtx.lookup("java:comp/env/ejb/Account3");
-         home = (AccountHome) 
-            PortableRemoteObject.narrow(objref, AccountHome.class);
-         account3 = home.create(testName + "#account3", 0);
-
-      }
-      catch (Exception e) 
-      {
-         throw new EJBException(e);
-      }
-   }
-
-   private void findAccounts() 
-   {
-      try 
-      {
-         Object objref;
-         AccountEntityHome home;
-         Context iniCtx = new InitialContext();
-         
-         objref = iniCtx.lookup("java:comp/env/ejb/Account1");
-         home = (AccountEntityHome) 
-            PortableRemoteObject.narrow(objref, AccountEntityHome.class);
-         try
-         {
-            account1 = home.findByPrimaryKey(testName + "#account1");
-         }
-         catch (FinderException e)
-         {
-            account1 = home.create(testName + "#account1", 0);
-         }
-         
-         objref = iniCtx.lookup("java:comp/env/ejb/Account2");
-         home = (AccountEntityHome) 
-            PortableRemoteObject.narrow(objref, AccountEntityHome.class);
-         try
-         {
-            account2 = home.findByPrimaryKey(testName + "#account2");
-         }
-         catch (FinderException e)
-         {
-            account2 = home.create(testName + "#account2", 0);
-         }
-         
-         
-         objref = iniCtx.lookup("java:comp/env/ejb/Account3");
-         home = (AccountEntityHome) 
-            PortableRemoteObject.narrow(objref, AccountEntityHome.class);
-         try
-         {
-            account3 = home.findByPrimaryKey(testName + "#account3");
-         }
-         catch (FinderException e)
-         {
-            account3 = home.create(testName + "#account3", 0);
-         }
-      }
-      catch (Exception e) 
-      {
-         throw new EJBException(e);
-      }
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/ejb/PassThroughBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/ejb/PassThroughBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/ejb/PassThroughBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,150 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.ejb;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.EJBException;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.rmi.PortableRemoteObject;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.dtm.interfaces.Worker;
-import org.jboss.test.dtm.interfaces.WorkerHome;
-import org.jboss.test.util.ejb.SessionSupport;
-
-/** 
- * Implementation class for the PassThrough stateful session bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class PassThroughBean
-   extends SessionSupport
-{
-   private static transient Logger log = 
-         Logger.getLogger(PassThroughBean.class);
-   
-   private String testName;
-   private Worker workerSession;
-
-   public void ejbCreate(String name)
-   {
-      this.testName = name;
-      log = Logger.getLogger(PassThroughBean.class.getName() + "#" + testName);
-      log.debug("ejbCreate(" + name + "), ctx=" + sessionCtx);
-      initWorker();
-   }
-
-   public void setBalances(int value1, int value2)
-   {
-      try
-      {
-         workerSession.setBalances(value1, value2);
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public int[] getBalances()
-   {
-      try
-      {
-         return workerSession.getBalances();
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public void addToBalances(int value)
-   {
-      try
-      {
-         workerSession.addToBalances(value);
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-
-   public void setRollbackOnly()
-   {
-      try
-      {
-         workerSession.setRollbackOnly();
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public void tellFirstAccountToSetRollbackOnly()
-   {
-      try
-      {
-         workerSession.tellFirstAccountToSetRollbackOnly();
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public void tellSecondAccountToSetRollbackOnly()
-   {
-      try
-      {
-         workerSession.tellSecondAccountToSetRollbackOnly();
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   private void initWorker() 
-   {
-      try 
-      {
-         Object objref;
-         WorkerHome home;
-         Context iniCtx = new InitialContext();
-         
-         objref = iniCtx.lookup("java:comp/env/ejb/WorkerEJB");
-         home = (WorkerHome) 
-            PortableRemoteObject.narrow(objref, WorkerHome.class);
-         workerSession = home.create("Worker(" + testName + ")");
-      }
-      catch (Exception e) 
-      {
-         throw new EJBException(e);
-      }
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/ejb/WorkerBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/ejb/WorkerBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/ejb/WorkerBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,154 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.ejb;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.EJBException;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.rmi.PortableRemoteObject;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.dtm.interfaces.Account;
-import org.jboss.test.dtm.interfaces.AccountHome;
-import org.jboss.test.util.ejb.SessionSupport;
-
-/** 
- * Implementation class for the Worker stateful session bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class WorkerBean
-   extends SessionSupport
-{
-   private static transient Logger log = 
-         Logger.getLogger(WorkerBean.class);
-   
-   private String testName;
-   private Account account1, account2;
-
-   public void ejbCreate(String name)
-   {
-      this.testName = name;
-      log = Logger.getLogger(WorkerBean.class.getName() + "#" + testName);
-      log.debug("ejbCreate(" + name + "), ctx=" + sessionCtx);
-      initAccounts();
-   }
-
-   public void setBalances(int value1, int value2)
-   {
-      try
-      {
-         account1.setBalance(value1);
-         account2.setBalance(value2);
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public int[] getBalances()
-   {
-      try
-      {
-         int[] balances = new int[2];
-         balances[0] = account1.getBalance();
-         balances[1] = account2.getBalance();
-         return balances;
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public void addToBalances(int value)
-   {
-      try
-      {
-         account1.addToBalance(value);
-         account2.addToBalance(value);
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-
-   public void setRollbackOnly()
-   {
-      sessionCtx.setRollbackOnly();
-   }
-   
-   public void tellFirstAccountToSetRollbackOnly()
-   {
-      try
-      {
-         account1.setRollbackOnly();
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public void tellSecondAccountToSetRollbackOnly()
-   {
-      try
-      {
-         account2.setRollbackOnly();
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   private void initAccounts() 
-   {
-      try 
-      {
-         Object objref;
-         AccountHome home;
-         Context iniCtx = new InitialContext();
-         
-         objref = iniCtx.lookup("java:comp/env/ejb/Account1");
-         home = (AccountHome) 
-            PortableRemoteObject.narrow(objref, AccountHome.class);
-         account1 = home.create("account1", 0);
-         
-         objref = iniCtx.lookup("java:comp/env/ejb/Account2");
-         home = (AccountHome) 
-            PortableRemoteObject.narrow(objref, AccountHome.class);
-         account2 = home.create("account2", 0);
-         
-      }
-      catch (Exception e) 
-      {
-         throw new EJBException(e);
-      }
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/Account.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/Account.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/Account.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,48 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.interfaces;
-
-import java.rmi.RemoteException;
-import javax.ejb.EJBObject;
-
-/**
- * Remote interface of the Account bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface Account
-   extends EJBObject
-{
-   public int getBalance()
-      throws RemoteException;
-
-   public void setBalance(int value)
-      throws RemoteException;
-
-   public void addToBalance(int value)
-      throws RemoteException;
-
-   public void setRollbackOnly()
-      throws RemoteException;
-}
-

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/AccountEntityHome.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/AccountEntityHome.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/AccountEntityHome.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,39 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.interfaces;
-
-
-import java.rmi.RemoteException;
-import javax.ejb.FinderException;
-
-/** 
- * Home interface of the AccountEntity bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface AccountEntityHome
-   extends AccountHome
-{
-	public Account findByPrimaryKey(String name) 
-      throws RemoteException, FinderException;
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/AccountHome.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/AccountHome.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/AccountHome.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,40 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.interfaces;
-
-
-import java.rmi.RemoteException;
-import javax.ejb.CreateException;
-import javax.ejb.EJBHome;
-
-/** 
- * Home interface of the Account bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface AccountHome
-   extends EJBHome
-{
-   public Account create(String name, int initialBalance)
-      throws RemoteException, CreateException;
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/FrontEnd.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/FrontEnd.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/FrontEnd.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,57 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.interfaces;
-
-import java.rmi.RemoteException;
-import javax.ejb.EJBObject;
-
-/**
- * Remote interface of the FrontEnd stateful session bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface FrontEnd
-   extends EJBObject
-{
-   public void setBalances(int value1, int value2, int value3)
-      throws RemoteException;
-
-   public int[] getBalances()
-      throws RemoteException;
-
-   public void addToBalances(int value)
-   throws RemoteException;
-
-   public void setRollbackOnly()
-      throws RemoteException;
-
-   public void tellFirstAccountToSetRollbackOnly()
-      throws RemoteException;
-
-   public void tellSecondAccountToSetRollbackOnly()
-      throws RemoteException;
-
-   public void tellThirdAccountToSetRollbackOnly()
-      throws RemoteException;
-}
-

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/FrontEndHome.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/FrontEndHome.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/FrontEndHome.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,43 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.interfaces;
-
-
-import java.rmi.RemoteException;
-import javax.ejb.CreateException;
-import javax.ejb.EJBHome;
-
-/** 
- * Home interface of the FrontEnd stateful session bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface FrontEndHome
-   extends EJBHome
-{
-   public FrontEnd create(String name)
-      throws RemoteException, CreateException;
-
-   public FrontEnd create(String name, boolean reuseAccounts)
-      throws RemoteException, CreateException;
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/PassThrough.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/PassThrough.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/PassThrough.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,37 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.interfaces;
-
-import java.rmi.RemoteException;
-import javax.ejb.EJBObject;
-
-/**
- * Remote interface of the PassThrough stateful session bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface PassThrough
-   extends Session
-{
-}
-

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/PassThroughHome.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/PassThroughHome.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/PassThroughHome.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,40 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.interfaces;
-
-
-import java.rmi.RemoteException;
-import javax.ejb.CreateException;
-import javax.ejb.EJBHome;
-
-/** 
- * Home interface of the PassThrough stateful session bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface PassThroughHome
-   extends EJBHome
-{
-   public PassThrough create(String name)
-      throws RemoteException, CreateException;
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/Session.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/Session.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/Session.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,55 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.interfaces;
-
-import java.rmi.RemoteException;
-import javax.ejb.EJBObject;
-
-/**
- * Remote interface of the Session stateful session bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface Session
-   extends EJBObject
-{
-   public void setBalances(int value1, int value2)
-      throws RemoteException;
-
-   public int[] getBalances()
-      throws RemoteException;
-
-   public void addToBalances(int value)
-   throws RemoteException;
-
-   public void setRollbackOnly()
-      throws RemoteException;
-
-   public void tellFirstAccountToSetRollbackOnly()
-      throws RemoteException;
-
-   public void tellSecondAccountToSetRollbackOnly()
-      throws RemoteException;
-
-}
-

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/Worker.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/Worker.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/Worker.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,37 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.interfaces;
-
-import java.rmi.RemoteException;
-import javax.ejb.EJBObject;
-
-/**
- * Remote interface of the Worker stateful session bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface Worker
-   extends Session
-{
-}
-

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/WorkerHome.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/WorkerHome.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/interfaces/WorkerHome.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,40 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.interfaces;
-
-
-import java.rmi.RemoteException;
-import javax.ejb.CreateException;
-import javax.ejb.EJBHome;
-
-/** 
- * Home interface of the Worker stateful session bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface WorkerHome
-   extends EJBHome
-{
-   public Worker create(String name)
-      throws RemoteException, CreateException;
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/test/T01DTMUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/test/T01DTMUnitTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/test/T01DTMUnitTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,371 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.test;
-
-import org.jboss.test.JBossTestCase;
-import org.jboss.test.dtm.interfaces.FrontEnd;
-import org.jboss.test.dtm.interfaces.FrontEndHome;
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.RollbackException;
-import javax.transaction.TransactionRolledbackException;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-public class T01DTMUnitTestCase
-extends JBossTestCase
-{
-   public T01DTMUnitTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void testCommittedTx()
-      throws Exception
-   {
-      getLog().debug("+++ testCommittedTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testCommittedTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances");
-      userTx.begin();
-      frontEnd.addToBalances(100);
-      userTx.commit();
-   
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-      assertTrue("third balance == 203", balances[2] == 203);
-   
-      getLog().debug("Remove FrontEnd bean");
-      frontEnd.remove();
-   }
-
-   public void testRolledbackTx()
-      throws Exception
-   {
-      getLog().debug("+++ testRolledbackTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testRolledbackTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances and rollback");
-      userTx.begin();
-      frontEnd.addToBalances(100);
-      userTx.rollback();
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      frontEnd.remove();
-   }
-
-   public void testSetRollbackOnly()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnly");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnly");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         userTx.setRollbackOnly();
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         userTx.setRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      frontEnd.remove();
-   }
-
-   public void testSetRollbackOnlyAtTheFrontEnd()
-      throws Exception
-      {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFrontEnd");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnlyAtTheFrontEnd");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances, set rollback only at the front end, " + 
-                     "and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         frontEnd.setRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      frontEnd.remove();
-      }
-
-   public void testSetRollbackOnlyAtTheFirstAccount()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFirstAccount");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnlyAtTheFirstAccount");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only at " + 
-                     "the first account, and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         frontEnd.tellFirstAccountToSetRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      frontEnd.remove();
-   }
-
-   public static Test suite() throws Exception
-   {
-      java.net.URL url 
-          = ClassLoader.getSystemResource("host0.jndi.properties");
-      java.util.Properties host0JndiProps = new java.util.Properties();
-      host0JndiProps.load(url.openStream());
-
-      java.util.Properties systemProps = System.getProperties();
-      systemProps.putAll(host0JndiProps);
-      System.setProperties(systemProps);
-
-      return getDeploySetup(T01DTMUnitTestCase.class, "dtmfrontend.jar");
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/test/T02OTSUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/test/T02OTSUnitTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/test/T02OTSUnitTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,386 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.test;
-
-import org.jboss.test.JBossTestCase;
-import org.jboss.test.dtm.interfaces.FrontEnd;
-import org.jboss.test.dtm.interfaces.FrontEndHome;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.RollbackException;
-import javax.transaction.TransactionRolledbackException;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-public class T02OTSUnitTestCase
-extends JBossTestCase
-{
-   // Attributes ----------------------------------------------------
-   private java.util.Properties jndiProps;
-   
-   // Constructors --------------------------------------------------
-   public T02OTSUnitTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-      java.net.URL url 
-          = ClassLoader.getSystemResource("host0.cosnaming.jndi.properties");
-      jndiProps = new java.util.Properties();
-      jndiProps.load(url.openStream());
-   }
-
-   // Override getInitialContext() ----------------------------------
-   protected InitialContext getInitialContext() throws Exception
-   {
-      return new InitialContext(jndiProps);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void testCommittedTx()
-      throws Exception
-   {
-      getLog().debug("+++ testCommittedTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmiioptest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testCommittedTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances");
-      userTx.begin();
-      frontEnd.addToBalances(100);
-      userTx.commit();
-   
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-      assertTrue("third balance == 203", balances[2] == 203);
-   
-      getLog().debug("Remove FrontEnd bean");
-      frontEnd.remove();
-   }
-
-   public void testRolledbackTx()
-      throws Exception
-   {
-      getLog().debug("+++ testRolledbackTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmiioptest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testRolledbackTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances and rollback");
-      userTx.begin();
-      frontEnd.addToBalances(100);
-      userTx.rollback();
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      frontEnd.remove();
-   }
-
-   public void testSetRollbackOnly()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnly");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmiioptest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnly");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         userTx.setRollbackOnly();
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         userTx.setRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      frontEnd.remove();
-   }
-
-   public void testSetRollbackOnlyAtTheFrontEnd()
-      throws Exception
-      {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFrontEnd");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmiioptest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnlyAtTheFrontEnd");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances, set rollback only at the front end, " + 
-                     "and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         frontEnd.setRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      frontEnd.remove();
-      }
-
-   public void testSetRollbackOnlyAtTheFirstAccount()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFirstAccount");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmiioptest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnlyAtTheFirstAccount");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only at " + 
-                     "the first account, and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         frontEnd.tellFirstAccountToSetRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      frontEnd.remove();
-   }
-
-   public static Test suite() throws Exception
-   {
-      java.net.URL url 
-          = ClassLoader.getSystemResource("host0.jndi.properties");
-      java.util.Properties host0JndiProps = new java.util.Properties();
-      host0JndiProps.load(url.openStream());
-
-      java.util.Properties systemProps = System.getProperties();
-      systemProps.putAll(host0JndiProps);
-      System.setProperties(systemProps);
-
-      return getDeploySetup(T02OTSUnitTestCase.class, "dtmfrontendiiop.jar");
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/test/T03MixedDTMOTSUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/test/T03MixedDTMOTSUnitTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/test/T03MixedDTMOTSUnitTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,372 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.test;
-
-import org.jboss.test.JBossTestCase;
-import org.jboss.test.dtm.interfaces.FrontEnd;
-import org.jboss.test.dtm.interfaces.FrontEndHome;
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.RollbackException;
-import javax.transaction.TransactionRolledbackException;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-public class T03MixedDTMOTSUnitTestCase
-extends JBossTestCase
-{
-   public T03MixedDTMOTSUnitTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void testCommittedTx()
-      throws Exception
-   {
-      getLog().debug("+++ testCommittedTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("mixedDtmOtsTest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testCommittedTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances");
-      userTx.begin();
-      frontEnd.addToBalances(100);
-      userTx.commit();
-   
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-      assertTrue("third balance == 203", balances[2] == 203);
-   
-      getLog().debug("Remove FrontEnd bean");
-      frontEnd.remove();
-   }
-
-   public void testRolledbackTx()
-      throws Exception
-   {
-      getLog().debug("+++ testRolledbackTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("mixedDtmOtsTest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testRolledbackTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances and rollback");
-      userTx.begin();
-      frontEnd.addToBalances(100);
-      userTx.rollback();
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      frontEnd.remove();
-   }
-
-   public void testSetRollbackOnly()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnly");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("mixedDtmOtsTest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnly");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         userTx.setRollbackOnly();
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         userTx.setRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      frontEnd.remove();
-   }
-
-   public void testSetRollbackOnlyAtTheFrontEnd()
-      throws Exception
-      {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFrontEnd");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("mixedDtmOtsTest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnlyAtTheFrontEnd");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances, set rollback only at the front end, " + 
-                     "and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         frontEnd.setRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      frontEnd.remove();
-      }
-
-   public void testSetRollbackOnlyAtTheFirstAccount()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFirstAccount");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("mixedDtmOtsTest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnlyAtTheFirstAccount");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only at " + 
-                     "the first account, and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         frontEnd.tellFirstAccountToSetRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      frontEnd.remove();
-   }
-
-   public static Test suite() throws Exception
-   {
-      java.net.URL url 
-          = ClassLoader.getSystemResource("host0.jndi.properties");
-      java.util.Properties host0JndiProps = new java.util.Properties();
-      host0JndiProps.load(url.openStream());
-
-      java.util.Properties systemProps = System.getProperties();
-      systemProps.putAll(host0JndiProps);
-      System.setProperties(systemProps);
-
-      return getDeploySetup(T03MixedDTMOTSUnitTestCase.class, 
-                            "dtmotsfrontend.jar");
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/test/T04MixedOTSDTMUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/test/T04MixedOTSDTMUnitTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/test/T04MixedOTSDTMUnitTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,387 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.test;
-
-import org.jboss.test.JBossTestCase;
-import org.jboss.test.dtm.interfaces.FrontEnd;
-import org.jboss.test.dtm.interfaces.FrontEndHome;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.RollbackException;
-import javax.transaction.TransactionRolledbackException;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-public class T04MixedOTSDTMUnitTestCase
-extends JBossTestCase
-{
-   // Attributes ----------------------------------------------------
-   private java.util.Properties jndiProps;
-   
-   // Constructors --------------------------------------------------
-   public T04MixedOTSDTMUnitTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-      java.net.URL url 
-          = ClassLoader.getSystemResource("host0.cosnaming.jndi.properties");
-      jndiProps = new java.util.Properties();
-      jndiProps.load(url.openStream());
-   }
-
-   // Override getInitialContext() ----------------------------------
-   protected InitialContext getInitialContext() throws Exception
-   {
-      return new InitialContext(jndiProps);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void testCommittedTx()
-      throws Exception
-   {
-      getLog().debug("+++ testCommittedTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("mixedOtsDtmTest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testCommittedTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances");
-      userTx.begin();
-      frontEnd.addToBalances(100);
-      userTx.commit();
-   
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-      assertTrue("third balance == 203", balances[2] == 203);
-   
-      getLog().debug("Remove FrontEnd bean");
-      frontEnd.remove();
-   }
-
-   public void testRolledbackTx()
-      throws Exception
-   {
-      getLog().debug("+++ testRolledbackTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("mixedOtsDtmTest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testRolledbackTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances and rollback");
-      userTx.begin();
-      frontEnd.addToBalances(100);
-      userTx.rollback();
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      frontEnd.remove();
-   }
-
-   public void testSetRollbackOnly()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnly");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("mixedOtsDtmTest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnly");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         userTx.setRollbackOnly();
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         userTx.setRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      frontEnd.remove();
-   }
-
-   public void testSetRollbackOnlyAtTheFrontEnd()
-      throws Exception
-      {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFrontEnd");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("mixedOtsDtmTest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnlyAtTheFrontEnd");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances, set rollback only at the front end, " + 
-                     "and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         frontEnd.setRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      frontEnd.remove();
-      }
-
-   public void testSetRollbackOnlyAtTheFirstAccount()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFirstAccount");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("mixedOtsDtmTest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnlyAtTheFirstAccount");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only at " + 
-                     "the first account, and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         frontEnd.tellFirstAccountToSetRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      frontEnd.remove();
-   }
-
-   public static Test suite() throws Exception
-   {
-      java.net.URL url 
-          = ClassLoader.getSystemResource("host0.jndi.properties");
-      java.util.Properties host0JndiProps = new java.util.Properties();
-      host0JndiProps.load(url.openStream());
-
-      java.util.Properties systemProps = System.getProperties();
-      systemProps.putAll(host0JndiProps);
-      System.setProperties(systemProps);
-
-      return getDeploySetup(T04MixedOTSDTMUnitTestCase.class, 
-                            "otsdtmfrontendiiop.jar");
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/test/T05DTMInterpositionUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/test/T05DTMInterpositionUnitTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/test/T05DTMInterpositionUnitTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,340 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.test;
-
-import org.jboss.test.JBossTestCase;
-import org.jboss.test.dtm.interfaces.PassThrough;
-import org.jboss.test.dtm.interfaces.PassThroughHome;
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.RollbackException;
-import javax.transaction.TransactionRolledbackException;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-public class T05DTMInterpositionUnitTestCase
-extends JBossTestCase
-{
-   public T05DTMInterpositionUnitTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void testCommittedTx()
-      throws Exception
-   {
-      getLog().debug("+++ testCommittedTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2DtmEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-      
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testCommittedTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances");
-      userTx.begin();
-      session.addToBalances(100);
-      userTx.commit();
-   
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-   
-      getLog().debug("Remove PassThrough bean");
-      session.remove();
-   }
-
-   public void testRolledbackTx()
-      throws Exception
-   {
-      getLog().debug("+++ testRolledbackTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2DtmEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testRolledbackTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances and rollback");
-      userTx.begin();
-      session.addToBalances(100);
-      userTx.rollback();
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      session.remove();
-   }
-
-   public void testSetRollbackOnly()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnly");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2DtmEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testSetRollbackOnly");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances, set rollback only at the front end, " + 
-                     "and try to commit");
-      try
-      {
-         userTx.begin();
-         session.addToBalances(100);
-         session.setRollbackOnly();
-         session.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      session.remove();
-      }
-
-   public void testSetRollbackOnlyAtTheFirstAccount()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFirstAccount");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2DtmEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testSetRollbackOnlyAtTheFirstAccount");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      getLog().debug("Update balances, set rollback only at " + 
-                     "the first account, and try to commit");
-      try
-      {
-         userTx.begin();
-         session.addToBalances(100);
-         session.tellFirstAccountToSetRollbackOnly();
-         session.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      session.remove();
-   }
-
-   public void testSetRollbackOnlyAtTheSecondAccount()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnlyAtTheSecondAccount");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2DtmEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testSetRollbackOnlyAtTheSecondAccount");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      getLog().debug("Update balances, set rollback only at " + 
-                     "the first account, and try to commit");
-      try
-      {
-         userTx.begin();
-         session.addToBalances(100);
-         session.tellSecondAccountToSetRollbackOnly();
-         session.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      session.remove();
-   }
-
-   public static Test suite() throws Exception
-   {
-      java.net.URL url 
-          = ClassLoader.getSystemResource("host0.jndi.properties");
-      java.util.Properties host0JndiProps = new java.util.Properties();
-      host0JndiProps.load(url.openStream());
-
-      java.util.Properties systemProps = System.getProperties();
-      systemProps.putAll(host0JndiProps);
-      System.setProperties(systemProps);
-
-      return getDeploySetup(T05DTMInterpositionUnitTestCase.class, 
-                            "dtmpassthrough2dtm.jar");
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/test/T06OTSInterpositionUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/test/T06OTSInterpositionUnitTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/test/T06OTSInterpositionUnitTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,354 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.test;
-
-import org.jboss.test.JBossTestCase;
-import org.jboss.test.dtm.interfaces.PassThrough;
-import org.jboss.test.dtm.interfaces.PassThroughHome;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.RollbackException;
-import javax.transaction.TransactionRolledbackException;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-public class T06OTSInterpositionUnitTestCase
-extends JBossTestCase
-{
-   // Attributes ----------------------------------------------------
-   private java.util.Properties jndiProps;
-   
-   public T06OTSInterpositionUnitTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-      java.net.URL url 
-          = ClassLoader.getSystemResource("host0.cosnaming.jndi.properties");
-      jndiProps = new java.util.Properties();
-      jndiProps.load(url.openStream());
-   }
-
-   // Override getInitialContext() ----------------------------------
-   protected InitialContext getInitialContext() throws Exception
-   {
-      return new InitialContext(jndiProps);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void testCommittedTx()
-      throws Exception
-   {
-      getLog().debug("+++ testCommittedTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2OtsEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-      
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testCommittedTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances");
-      userTx.begin();
-      session.addToBalances(100);
-      userTx.commit();
-   
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-   
-      getLog().debug("Remove PassThrough bean");
-      session.remove();
-   }
-
-   public void testRolledbackTx()
-      throws Exception
-   {
-      getLog().debug("+++ testRolledbackTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2OtsEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testRolledbackTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances and rollback");
-      userTx.begin();
-      session.addToBalances(100);
-      userTx.rollback();
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      session.remove();
-   }
-
-   public void testSetRollbackOnly()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnly");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2OtsEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testSetRollbackOnly");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances, set rollback only at the front end, " + 
-                     "and try to commit");
-      try
-      {
-         userTx.begin();
-         session.addToBalances(100);
-         session.setRollbackOnly();
-         session.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      session.remove();
-      }
-
-   public void testSetRollbackOnlyAtTheFirstAccount()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFirstAccount");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2OtsEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testSetRollbackOnlyAtTheFirstAccount");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      getLog().debug("Update balances, set rollback only at " + 
-                     "the first account, and try to commit");
-      try
-      {
-         userTx.begin();
-         session.addToBalances(100);
-         session.tellFirstAccountToSetRollbackOnly();
-         session.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      session.remove();
-   }
-
-   public void testSetRollbackOnlyAtTheSecondAccount()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnlyAtTheSecondAccount");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2OtsEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testSetRollbackOnlyAtTheSecondAccount");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      getLog().debug("Update balances, set rollback only at " + 
-                     "the first account, and try to commit");
-      try
-      {
-         userTx.begin();
-         session.addToBalances(100);
-         session.tellSecondAccountToSetRollbackOnly();
-         session.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      session.remove();
-   }
-
-   public static Test suite() throws Exception
-   {
-      java.net.URL url 
-          = ClassLoader.getSystemResource("host0.jndi.properties");
-      java.util.Properties host0JndiProps = new java.util.Properties();
-      host0JndiProps.load(url.openStream());
-
-      java.util.Properties systemProps = System.getProperties();
-      systemProps.putAll(host0JndiProps);
-      System.setProperties(systemProps);
-
-      return getDeploySetup(T06OTSInterpositionUnitTestCase.class, 
-                            "dtmpassthrough2ots.jar");
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/test/T07DTMOTSInterpositionUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/test/T07DTMOTSInterpositionUnitTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/test/T07DTMOTSInterpositionUnitTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,340 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.test;
-
-import org.jboss.test.JBossTestCase;
-import org.jboss.test.dtm.interfaces.PassThrough;
-import org.jboss.test.dtm.interfaces.PassThroughHome;
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.RollbackException;
-import javax.transaction.TransactionRolledbackException;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-public class T07DTMOTSInterpositionUnitTestCase
-extends JBossTestCase
-{
-   public T07DTMOTSInterpositionUnitTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void testCommittedTx()
-      throws Exception
-   {
-      getLog().debug("+++ testCommittedTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2OtsEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-      
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testCommittedTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances");
-      userTx.begin();
-      session.addToBalances(100);
-      userTx.commit();
-   
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-   
-      getLog().debug("Remove PassThrough bean");
-      session.remove();
-   }
-
-   public void testRolledbackTx()
-      throws Exception
-   {
-      getLog().debug("+++ testRolledbackTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2OtsEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testRolledbackTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances and rollback");
-      userTx.begin();
-      session.addToBalances(100);
-      userTx.rollback();
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      session.remove();
-   }
-
-   public void testSetRollbackOnly()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnly");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2OtsEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testSetRollbackOnly");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances, set rollback only at the front end, " + 
-                     "and try to commit");
-      try
-      {
-         userTx.begin();
-         session.addToBalances(100);
-         session.setRollbackOnly();
-         session.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      session.remove();
-      }
-
-   public void testSetRollbackOnlyAtTheFirstAccount()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFirstAccount");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2OtsEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testSetRollbackOnlyAtTheFirstAccount");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      getLog().debug("Update balances, set rollback only at " + 
-                     "the first account, and try to commit");
-      try
-      {
-         userTx.begin();
-         session.addToBalances(100);
-         session.tellFirstAccountToSetRollbackOnly();
-         session.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      session.remove();
-   }
-
-   public void testSetRollbackOnlyAtTheSecondAccount()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnlyAtTheSecondAccount");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2OtsEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testSetRollbackOnlyAtTheSecondAccount");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      getLog().debug("Update balances, set rollback only at " + 
-                     "the first account, and try to commit");
-      try
-      {
-         userTx.begin();
-         session.addToBalances(100);
-         session.tellSecondAccountToSetRollbackOnly();
-         session.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      session.remove();
-   }
-
-   public static Test suite() throws Exception
-   {
-      java.net.URL url 
-          = ClassLoader.getSystemResource("host0.jndi.properties");
-      java.util.Properties host0JndiProps = new java.util.Properties();
-      host0JndiProps.load(url.openStream());
-
-      java.util.Properties systemProps = System.getProperties();
-      systemProps.putAll(host0JndiProps);
-      System.setProperties(systemProps);
-
-      return getDeploySetup(T07DTMOTSInterpositionUnitTestCase.class, 
-                            "dtmpassthrough2ots.jar");
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/test/T08OTSDTMInterpositionUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/test/T08OTSDTMInterpositionUnitTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/test/T08OTSDTMInterpositionUnitTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,354 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.test;
-
-import org.jboss.test.JBossTestCase;
-import org.jboss.test.dtm.interfaces.PassThrough;
-import org.jboss.test.dtm.interfaces.PassThroughHome;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.RollbackException;
-import javax.transaction.TransactionRolledbackException;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-public class T08OTSDTMInterpositionUnitTestCase
-extends JBossTestCase
-{
-   // Attributes ----------------------------------------------------
-   private java.util.Properties jndiProps;
-   
-   public T08OTSDTMInterpositionUnitTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-      java.net.URL url 
-          = ClassLoader.getSystemResource("host0.cosnaming.jndi.properties");
-      jndiProps = new java.util.Properties();
-      jndiProps.load(url.openStream());
-   }
-
-   // Override getInitialContext() ----------------------------------
-   protected InitialContext getInitialContext() throws Exception
-   {
-      return new InitialContext(jndiProps);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void testCommittedTx()
-      throws Exception
-   {
-      getLog().debug("+++ testCommittedTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2DtmEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-      
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testCommittedTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances");
-      userTx.begin();
-      session.addToBalances(100);
-      userTx.commit();
-   
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-   
-      getLog().debug("Remove PassThrough bean");
-      session.remove();
-   }
-
-   public void testRolledbackTx()
-      throws Exception
-   {
-      getLog().debug("+++ testRolledbackTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2DtmEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testRolledbackTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances and rollback");
-      userTx.begin();
-      session.addToBalances(100);
-      userTx.rollback();
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      session.remove();
-   }
-
-   public void testSetRollbackOnly()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnly");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2DtmEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testSetRollbackOnly");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances, set rollback only at the front end, " + 
-                     "and try to commit");
-      try
-      {
-         userTx.begin();
-         session.addToBalances(100);
-         session.setRollbackOnly();
-         session.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      session.remove();
-      }
-
-   public void testSetRollbackOnlyAtTheFirstAccount()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFirstAccount");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2DtmEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testSetRollbackOnlyAtTheFirstAccount");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      getLog().debug("Update balances, set rollback only at " + 
-                     "the first account, and try to commit");
-      try
-      {
-         userTx.begin();
-         session.addToBalances(100);
-         session.tellFirstAccountToSetRollbackOnly();
-         session.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      session.remove();
-   }
-
-   public void testSetRollbackOnlyAtTheSecondAccount()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnlyAtTheSecondAccount");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/PassThrough2DtmEJB");
-      PassThroughHome home =
-         (PassThroughHome) PortableRemoteObject.narrow(objref, PassThroughHome.class);
-
-      getLog().debug("Create PassThrough bean");
-      PassThrough session = home.create("testSetRollbackOnlyAtTheSecondAccount");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      session.setBalances(101, 102);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      getLog().debug("Update balances, set rollback only at " + 
-                     "the first account, and try to commit");
-      try
-      {
-         userTx.begin();
-         session.addToBalances(100);
-         session.tellSecondAccountToSetRollbackOnly();
-         session.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = session.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      
-      session.remove();
-   }
-
-   public static Test suite() throws Exception
-   {
-      java.net.URL url 
-          = ClassLoader.getSystemResource("host0.jndi.properties");
-      java.util.Properties host0JndiProps = new java.util.Properties();
-      host0JndiProps.load(url.openStream());
-
-      java.util.Properties systemProps = System.getProperties();
-      systemProps.putAll(host0JndiProps);
-      System.setProperties(systemProps);
-
-      return getDeploySetup(T08OTSDTMInterpositionUnitTestCase.class, 
-                            "dtmpassthrough2dtm.jar");
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/test/T09DTMXAUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/test/T09DTMXAUnitTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/test/T09DTMXAUnitTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,380 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.test;
-
-import org.jboss.test.JBossTestCase;
-import org.jboss.test.dtm.interfaces.FrontEnd;
-import org.jboss.test.dtm.interfaces.FrontEndHome;
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.RollbackException;
-import javax.transaction.TransactionRolledbackException;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-public class T09DTMXAUnitTestCase
-extends JBossTestCase
-{
-   public T09DTMXAUnitTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void testCommittedTx()
-      throws Exception
-   {
-      getLog().debug("+++ testCommittedTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testCommittedTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances");
-      userTx.begin();
-      frontEnd.addToBalances(100);
-      userTx.commit();
-   
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-      assertTrue("third balance == 203", balances[2] == 203);
-   
-      getLog().debug("Remove FrontEnd bean");
-      frontEnd.remove();
-   }
-
-   public void testRolledbackTx()
-      throws Exception
-   {
-      getLog().debug("+++ testRolledbackTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testRolledbackTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances and rollback");
-      userTx.begin();
-      frontEnd.addToBalances(100);
-      userTx.rollback();
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      frontEnd.remove();
-   }
-
-   public void testSetRollbackOnly()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnly");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnly");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         userTx.setRollbackOnly();
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         userTx.setRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      frontEnd.remove();
-   }
-
-   public void testSetRollbackOnlyAtTheFrontEnd()
-      throws Exception
-      {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFrontEnd");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnlyAtTheFrontEnd");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances, set rollback only at the front end, " + 
-                     "and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         frontEnd.setRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      frontEnd.remove();
-      }
-
-   public void testSetRollbackOnlyAtTheFirstAccount()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFirstAccount");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmtest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnlyAtTheFirstAccount");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only at " + 
-                     "the first account, and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         frontEnd.tellFirstAccountToSetRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("TransactionRolledbackException should have been thrown");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-
-	 // dissociate this thread from the transaction 
-	 // that has already been rolled back
-         userTx.rollback(); 
-
-	 // recreate the FrontEnd session instance, which was destroyed 
-	 // by the TransactionRolledbackException at the server side
-         frontEnd = home.create("testSetRollbackOnlyAtTheFirstAccount", true);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      frontEnd.remove();
-   }
-
-   public static Test suite() throws Exception
-   {
-      java.net.URL url 
-          = ClassLoader.getSystemResource("host0.jndi.properties");
-      java.util.Properties host0JndiProps = new java.util.Properties();
-      host0JndiProps.load(url.openStream());
-
-      java.util.Properties systemProps = System.getProperties();
-      systemProps.putAll(host0JndiProps);
-      System.setProperties(systemProps);
-
-      return getDeploySetup(T09DTMXAUnitTestCase.class, 
-                            "dtmfrontend2entities.jar");
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/dtm/test/T10OTSXAUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/dtm/test/T10OTSXAUnitTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/dtm/test/T10OTSXAUnitTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,395 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.dtm.test;
-
-import org.jboss.test.JBossTestCase;
-import org.jboss.test.dtm.interfaces.FrontEnd;
-import org.jboss.test.dtm.interfaces.FrontEndHome;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.RollbackException;
-import javax.transaction.TransactionRolledbackException;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-public class T10OTSXAUnitTestCase
-extends JBossTestCase
-{
-   // Attributes ----------------------------------------------------
-   private java.util.Properties jndiProps;
-   
-   // Constructors --------------------------------------------------
-   public T10OTSXAUnitTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-      java.net.URL url 
-          = ClassLoader.getSystemResource("host0.cosnaming.jndi.properties");
-      jndiProps = new java.util.Properties();
-      jndiProps.load(url.openStream());
-   }
-
-   // Override getInitialContext() ----------------------------------
-   protected InitialContext getInitialContext() throws Exception
-   {
-      return new InitialContext(jndiProps);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void testCommittedTx()
-      throws Exception
-   {
-      getLog().debug("+++ testCommittedTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmiioptest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testCommittedTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances");
-      userTx.begin();
-      frontEnd.addToBalances(100);
-      userTx.commit();
-   
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-      assertTrue("third balance == 203", balances[2] == 203);
-   
-      getLog().debug("Remove FrontEnd bean");
-      frontEnd.remove();
-   }
-
-   public void testRolledbackTx()
-      throws Exception
-   {
-      getLog().debug("+++ testRolledbackTx");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmiioptest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testRolledbackTx");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances and rollback");
-      userTx.begin();
-      frontEnd.addToBalances(100);
-      userTx.rollback();
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      frontEnd.remove();
-   }
-
-   public void testSetRollbackOnly()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnly");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmiioptest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnly");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         userTx.setRollbackOnly();
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         userTx.setRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      frontEnd.remove();
-   }
-
-   public void testSetRollbackOnlyAtTheFrontEnd()
-      throws Exception
-      {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFrontEnd");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmiioptest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnlyAtTheFrontEnd");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-   
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      getLog().debug("Update balances, set rollback only at the front end, " + 
-                     "and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         frontEnd.setRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("RollbackException should have been thrown");
-      }
-      catch (RollbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-   
-      frontEnd.remove();
-      }
-
-   public void testSetRollbackOnlyAtTheFirstAccount()
-      throws Exception
-   {
-      getLog().debug("+++ testSetRollbackOnlyAtTheFirstAccount");
-
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-      
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmiioptest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testSetRollbackOnlyAtTheFirstAccount");
-
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalances(101, 102, 103);
-      userTx.commit();
-      
-      int balances[];
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      getLog().debug("Update balances, set rollback only at " + 
-                     "the first account, and try to commit");
-      try
-      {
-         userTx.begin();
-         frontEnd.addToBalances(100);
-         frontEnd.tellFirstAccountToSetRollbackOnly();
-         frontEnd.addToBalances(50);
-         userTx.commit();
-         fail("TransactionRolledbackException should have been thrown");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         getLog().debug("Expected exception: " + e);
-
-	 // dissociate this thread from the transaction 
-	 // that has already been rolled back
-         userTx.rollback(); 
-
-	 // recreate the FrontEnd session instance, which was destroyed 
-	 // by the TransactionRolledbackException at the server side
-         frontEnd = home.create("testSetRollbackOnlyAtTheFirstAccount", true);
-      }
-
-      getLog().debug("Check that all balances remain the same");
-      userTx.begin();
-      balances = frontEnd.getBalances();
-      userTx.commit();
-      
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-      assertTrue("third balance == 103", balances[2] == 103);
-      
-      frontEnd.remove();
-   }
-
-   public static Test suite() throws Exception
-   {
-      java.net.URL url 
-          = ClassLoader.getSystemResource("host0.jndi.properties");
-      java.util.Properties host0JndiProps = new java.util.Properties();
-      host0JndiProps.load(url.openStream());
-
-      java.util.Properties systemProps = System.getProperties();
-      systemProps.putAll(host0JndiProps);
-      System.setProperties(systemProps);
-
-      return getDeploySetup(T10OTSXAUnitTestCase.class, 
-                            "dtmfrontend2entitiesiiop.jar");
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/bean/AccountBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/bean/AccountBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/bean/AccountBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,71 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.bean;
-
-import javax.ejb.CreateException;
-import org.jboss.logging.Logger;
-import org.jboss.test.util.ejb.EntitySupport;
-
-/** 
- * Implementation class for the Account entity bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public abstract class AccountBean
-   extends EntitySupport
-{
-   private static transient Logger log = 
-      Logger.getLogger(AccountBean.class);
-
-   public abstract String getName();
-   public abstract void setName(String name);
-   public abstract int getBalance();
-   public abstract void setBalance(int balance);
-   
-   public String ejbCreate(String name, int initialBalance)
-      throws CreateException 
-   {
-      this.setName(name);
-      this.setBalance(initialBalance);
-      log = Logger.getLogger(AccountBean.class.getName() +
-                                 "#" + name);
-      log.debug("ejbCreate(" + name + ", " + initialBalance + 
-                "), ctx=" + entityCtx);
-      return null;
-   }
-
-   public void ejbPostCreate(String name, int initialBalance)
-   {
-   }
-
-   public void addToBalance(int delta)
-   {
-      this.setBalance(this.getBalance() + delta);
-   }
-
-   public void setRollbackOnly()
-   {
-      entityCtx.setRollbackOnly();
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/bean/DummyRecoverableProxyService.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/bean/DummyRecoverableProxyService.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/bean/DummyRecoverableProxyService.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,234 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.bean;
-
-import java.io.Serializable;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.transaction.xa.XAException;
-import javax.transaction.xa.XAResource;
-import javax.transaction.xa.Xid;
-
-import org.jboss.naming.Util;
-import org.jboss.system.ServiceMBeanSupport;
-import org.jboss.tm.recovery.Recoverable;
-import org.jboss.tm.recovery.RecoveryManagerServiceMBean;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * Service MBean that registers a proxy to a remote DummyRecoverable in
- * the local JNDI space.  
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class DummyRecoverableProxyService 
-      extends ServiceMBeanSupport 
-      implements DummyRecoverableProxyServiceMBean
-{
-   private String jndiName;
-   private String remoteJndiName;
-   private RecoveryManagerServiceMBean manager;
-   private Recoverable proxy;
-   
-   public String getJndiName()
-   {
-      return jndiName;
-   }
-
-   public void setJndiName(String jndiName)
-   {
-      this.jndiName = jndiName;
-   }
-
-   public String getRemoteJndiName()
-   {
-      return remoteJndiName;
-   }
-
-   public void setRemoteJndiName(String remoteJndiName)
-   {
-      this.remoteJndiName = remoteJndiName;
-   }
-
-   public void setManager(RecoveryManagerServiceMBean manager)
-   {
-      this.manager = manager;
-   }
-
-   public Recoverable getProxy()
-   {
-      return proxy;
-   }
-   
-   public void startService() throws Exception
-   {
-      proxy = (Recoverable) Util.lookup(remoteJndiName, Recoverable.class);
-      log.debug("Got Recoverable proxy from remoteJndiName=" + remoteJndiName);
-      manager.registerRecoverable(proxy);
-
-      Context iniCtx = new InitialContext();
-      Util.bind(iniCtx, jndiName, new RecoverableWrapper(proxy));
-      log.debug("Bound wrapped proxy under jndiName=" + jndiName);
-   }
-
-   public void stopService() throws Exception
-   {
-      Context iniCtx = new InitialContext();
-      Util.unbind(iniCtx, jndiName);
-      manager = null;
-      proxy = null;
-   }
-   
-   public static class RecoverableWrapper 
-         implements Recoverable, Serializable 
-   {
-      private Recoverable inner;
-      private transient XAResource resourceWrapper = null;
-      
-      RecoverableWrapper(Recoverable inner)
-      {
-         this.inner = inner;
-      }
-      
-      public String getId()
-      {
-         return inner.getId();
-      }
-
-      public XAResource getResource()
-      {
-         if (resourceWrapper == null)
-            resourceWrapper = new XAResourceWrapper(inner.getResource());
-         
-         return resourceWrapper;
-      }
-
-      public Xid[] scan() throws XAException
-      {
-         return inner.scan();
-      }
-
-      public void cleanupResource()
-      {      
-         inner.cleanupResource();
-      }
-      
-      public XAResource getUnwrappedResource()
-      {
-         return inner.getResource();
-      }
-
-   }
-   
-   private static class XAResourceWrapper 
-         implements XAResource, Serializable
-   {
-      private XAResource inner;
-      
-      XAResourceWrapper(XAResource xaRes) 
-      {
-         inner = xaRes;
-      }
-      
-      public void commit(Xid xid, boolean onePhase) throws XAException
-      {
-         try
-         {
-            inner.commit(xid, onePhase);
-         }
-         catch (RecoveryTestingException e)
-         {
-            crash();
-         }
-      }
-
-      public void end(Xid xid, int flags) throws XAException
-      {
-         inner.end(xid, flags);
-      }
-
-      public void forget(Xid xid) throws XAException
-      {
-         inner.forget(xid);
-      }
-
-      public int getTransactionTimeout() throws XAException
-      {
-         return inner.getTransactionTimeout();
-      }
-
-      public boolean isSameRM(XAResource xaRes) throws XAException
-      {
-         return inner.isSameRM(xaRes);
-      }
-
-      public int prepare(Xid xid) throws XAException
-      {
-         try
-         {
-            return inner.prepare(xid);
-         }
-         catch (RecoveryTestingException e)
-         {
-            crash();
-            return 0;
-         }
-      }
-
-      public Xid[] recover(int flag) throws XAException
-      {
-         return inner.recover(flag);
-      }
-
-      public void rollback(Xid xid) throws XAException
-      {
-         try
-         {
-            inner.rollback(xid);
-         }
-         catch (RecoveryTestingException e)
-         {
-            crash();
-         }
-         
-      }
-
-      public boolean setTransactionTimeout(int seconds) throws XAException
-      {
-         return inner.setTransactionTimeout(seconds);
-      }
-
-      public void start(Xid xid, int flags) throws XAException
-      {
-         inner.start(xid, flags);
-      }
-      
-   }
-
-   private static void crash()
-   {
-      Runtime.getRuntime().halt(1);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/bean/DummyRecoverableProxyServiceMBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/bean/DummyRecoverableProxyServiceMBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/bean/DummyRecoverableProxyServiceMBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,51 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.bean;
-
-import org.jboss.system.ServiceMBean;
-import org.jboss.tm.recovery.Recoverable;
-import org.jboss.tm.recovery.RecoveryManagerServiceMBean;
-
-/**
- * Interface of a service MBean that registers a proxy to a remote 
- * DummyRecoverable in the local JNDI space.  
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface DummyRecoverableProxyServiceMBean 
-      extends ServiceMBean
-{
-
-   String getJndiName();
-
-   void setJndiName(String jndiName);
-
-   String getRemoteJndiName();
-
-   void setRemoteJndiName(String remoteJndiName);
-
-   void setManager(RecoveryManagerServiceMBean manager);
-
-   Recoverable getProxy();
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/bean/DummyRecoverableService.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/bean/DummyRecoverableService.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/bean/DummyRecoverableService.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,71 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.bean;
-
-import org.jboss.test.recover.interfaces.DummyRecoverable;
-import org.jboss.test.recover.interfaces.DummyXAResourceImpl;
-import org.jboss.system.ServiceMBeanSupport;
-import org.jboss.tm.recovery.Recoverable;
-import org.jboss.tm.recovery.RecoveryManagerServiceMBean;
-
-/**
- * Obsolete class to be deleted soon.
- *
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @version $Revision$
- */
-public class DummyRecoverableService extends ServiceMBeanSupport
-{
-   private Recoverable recoverable;
-
-   private String id;
-   private RecoveryManagerServiceMBean manager;
-
-   public String getId()
-   {
-      return id;
-   }
-
-   public void setId(String id)
-   {
-      this.id = id;
-   }
-
-   public Recoverable getRecoverable()
-   {
-      return recoverable;
-   }
-
-   public void setManager(RecoveryManagerServiceMBean manager)
-   {
-      this.manager = manager;
-   }
-
-   protected void startService() throws Exception
-   {
-      super.startService();
-      recoverable = new DummyRecoverable(id, new DummyXAResourceImpl());
-      manager.registerRecoverable(recoverable);
-   }
-
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/bean/FrontEndBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/bean/FrontEndBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/bean/FrontEndBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,359 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.bean;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.EJBException;
-import javax.ejb.FinderException;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.rmi.PortableRemoteObject;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.Account;
-import org.jboss.test.recover.interfaces.AccountHome;
-import org.jboss.test.util.ejb.SessionSupport;
-
-/** 
- * Implementation class for the FrontEnd stateful session bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class FrontEndBean
-   extends SessionSupport
-{
-   private static transient Logger log = 
-         Logger.getLogger(FrontEndBean.class);
-   
-   private String testName;
-   private Account account1JBRem, account2JBRem, account1IIOP, account2IIOP;
-
-   public void ejbCreate(String name)
-   {
-      ejbCreate(name, false);
-   }
-
-   public void ejbCreate(String name, boolean keepAccountBalances)
-   {
-      this.testName = name;
-      log = Logger.getLogger(FrontEndBean.class.getName() + "#" + testName);
-      log.debug("ejbCreate(" + name + "), ctx=" + sessionCtx);
-      findAccounts(keepAccountBalances);
-   }
-
-   public void setBalancesOverJBRem(int value1, int value2)
-   {
-      try
-      {
-         account1JBRem.setBalance(value1);
-         account2JBRem.setBalance(value2);
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public void setBalancesOverIIOP(int value1, int value2)
-   {
-      try
-      {
-         account1IIOP.setBalance(value1);
-         account2IIOP.setBalance(value2);
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public void setBalancesOverJBRemAndIIOP(int value1, int value2)
-   {
-      try
-      {
-         account1JBRem.setBalance(value1);
-         account2IIOP.setBalance(value2);
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public void setBalancesOverIIOPAndJBRem(int value1, int value2)
-   {
-      try
-      {
-         account1IIOP.setBalance(value1);
-         account2JBRem.setBalance(value2);
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public int[] getBalancesOverJBRem()
-   {
-      try
-      {
-         int[] balances = new int[2];
-         balances[0] = account1JBRem.getBalance();
-         balances[1] = account2JBRem.getBalance();
-         return balances;
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public int[] getBalancesOverIIOP()
-   {
-      try
-      {
-         int[] balances = new int[2];
-         balances[0] = account1IIOP.getBalance();
-         balances[1] = account2IIOP.getBalance();
-         return balances;
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public int[] getBalancesOverJBRemAndIIOP()
-   {
-      try
-      {
-         int[] balances = new int[2];
-         balances[0] = account1JBRem.getBalance();
-         balances[1] = account2IIOP.getBalance();
-         return balances;
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public int[] getBalancesOverIIOPAndJBRem()
-   {
-      try
-      {
-         int[] balances = new int[2];
-         balances[0] = account1IIOP.getBalance();
-         balances[1] = account2JBRem.getBalance();
-         return balances;
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public void addToBalancesOverJBRem(int value)
-   {
-      try
-      {
-         account1JBRem.addToBalance(value);
-         account2JBRem.addToBalance(value);
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-
-   public void addToBalancesOverIIOP(int value)
-   {
-      try
-      {
-         account1IIOP.addToBalance(value);
-         account2IIOP.addToBalance(value);
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-
-   public void addToBalancesOverJBRemAndIIOP(int value)
-   {
-      try
-      {
-         account1JBRem.addToBalance(value);
-         account2IIOP.addToBalance(value);
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-
-   public void addToBalancesOverIIOPAndJBRem(int value)
-   {
-      try
-      {
-         account1IIOP.addToBalance(value);
-         account2JBRem.addToBalance(value);
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-
-   public void setRollbackOnly()
-   {
-      sessionCtx.setRollbackOnly();
-   }
-   
-   public void tellFirstAccountToSetRollbackOnlyOverJBRem()
-   {
-      try
-      {
-         account1JBRem.setRollbackOnly();
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public void tellFirstAccountToSetRollbackOnlyOverIIOP()
-   {
-      try
-      {
-         account1IIOP.setRollbackOnly();
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public void tellSecondAccountToSetRollbackOnlyOverJBRem()
-   {
-      try
-      {
-         account2JBRem.setRollbackOnly();
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   public void tellSecondAccountToSetRollbackOnlyOverIIOP()
-   {
-      try
-      {
-         account2IIOP.setRollbackOnly();
-      }
-      catch (RemoteException e)
-      {
-         throw new EJBException(e);
-      }
-   }
-   
-   private void findAccounts(boolean keepAccountBalances) 
-   {
-      try 
-      {
-         Object objref;
-         AccountHome home;
-         Context iniCtx = new InitialContext();
-         
-         objref = iniCtx.lookup("java:comp/env/ejb/Account1JBRem");
-         home = (AccountHome) 
-            PortableRemoteObject.narrow(objref, AccountHome.class);
-         try
-         {
-            account1JBRem = home.findByPrimaryKey(testName + "#account1");
-            if (!keepAccountBalances)
-               account1JBRem.setBalance(0);
-         }
-         catch (FinderException e)
-         {
-            account1JBRem = home.create(testName + "#account1", 0);
-         }
-         
-         objref = iniCtx.lookup("java:comp/env/ejb/Account2JBRem");
-         home = (AccountHome) 
-            PortableRemoteObject.narrow(objref, AccountHome.class);
-         try
-         {
-            account2JBRem = home.findByPrimaryKey(testName + "#account2");
-            if (!keepAccountBalances)
-               account2JBRem.setBalance(0);
-         }
-         catch (FinderException e)
-         {
-            account2JBRem = home.create(testName + "#account2", 0);
-         }
-
-         objref = iniCtx.lookup("java:comp/env/ejb/Account1IIOP");
-         home = (AccountHome) 
-            PortableRemoteObject.narrow(objref, AccountHome.class);
-         try
-         {
-            account1IIOP = home.findByPrimaryKey(testName + "#account1");
-            // already done via JBRem:
-            // if (!keepAccountBalances)
-            //   account1IIOP.setBalance(0); 
-         }
-         catch (FinderException e)
-         {
-            // should never get here
-            account1IIOP = home.create(testName + "#account1", 0);
-         }
-         
-         objref = iniCtx.lookup("java:comp/env/ejb/Account2IIOP");
-         home = (AccountHome) 
-            PortableRemoteObject.narrow(objref, AccountHome.class);
-         try
-         {
-            account2IIOP = home.findByPrimaryKey(testName + "#account2");
-            // already done via JBRem:
-            // if (!keepAccountBalances)
-            //   account2IIOP.setBalance(0);
-         }
-         catch (FinderException e)
-         {
-            // should never get here
-            account2IIOP = home.create(testName + "#account2", 0);
-         }
-      }
-      catch (Exception e) 
-      {
-         System.out.println("----------------------------------------");
-         e.printStackTrace();
-         System.out.println("----------------------------------------");
-         throw new EJBException(e);
-      }
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/bean/MockLoggerService.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/bean/MockLoggerService.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/bean/MockLoggerService.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,170 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.bean;
-
-import org.jboss.test.recover.interfaces.MockLogger;
-import org.jboss.tm.TxManager;
-import org.jboss.tm.recovery.BatchRecoveryLogger;
-import org.jboss.tm.recovery.BatchRecoveryLoggerService;
-
-/**
- * 
- * A MockLoggerService.
- * 
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class MockLoggerService 
-      extends BatchRecoveryLoggerService 
-      implements MockLoggerServiceMBean
-{
-   protected BatchRecoveryLogger createLogger()
-   {
-      return new MockLogger();
-   }
-
-   public boolean isCrashOnFailure()
-   {
-      return ((MockLogger)logger).isCrashOnFailure();
-   }
-
-   public void setCrashOnFailure(boolean crashOnFailure)
-   {
-      ((MockLogger)logger).setCrashOnFailure(crashOnFailure);
-   }
-
-   public int getFailBefore()
-   {
-      return ((MockLogger)logger).getFailBefore();
-   }
-
-   public void setFailBefore(int failBefore)
-   {
-      ((MockLogger)logger).setFailBefore(failBefore);
-   }
-
-   public int getFailAfter()
-   {
-      return ((MockLogger)logger).getFailAfter();
-   }
-
-   public void setFailAfter(int failAfter)
-   {
-      ((MockLogger)logger).setFailAfter(failAfter);
-   }
-
-   public boolean isFailBeforeCommitting()
-   {
-      return ((MockLogger)logger).isFailBeforeCommitting();
-   }
-
-   public void setFailBeforeCommitting(boolean failBeforeCommitting)
-   {
-      ((MockLogger)logger).setFailBeforeCommitting(failBeforeCommitting);
-   }
-
-   public boolean isFailAfterCommitting()
-   {
-      return ((MockLogger)logger).isFailAfterCommitting();
-   }
-
-   public void setFailAfterCommitting(boolean failAfterCommitting)
-   {
-      ((MockLogger)logger).setFailAfterCommitting(failAfterCommitting);
-   }
-
-   public boolean isFailBeforePreparing()
-   {
-      return ((MockLogger)logger).isFailBeforePreparing();
-   }
-
-   public void setFailBeforePreparing(boolean failBeforePreparing)
-   {
-      ((MockLogger)logger).setFailBeforePreparing(failBeforePreparing);
-   }
-
-   public boolean isFailAfterPreparing()
-   {
-      return ((MockLogger)logger).isFailAfterPreparing();
-   }
-
-   public void setFailAfterPreparing(boolean failAfterPreparing)
-   {
-      ((MockLogger)logger).setFailAfterPreparing(failAfterPreparing);
-   }
-
-   public boolean isFailBeforeSavingHeuristicStatus()
-   {
-      return ((MockLogger)logger).isFailBeforeSavingHeuristicStatus();
-   }
-
-   public void setFailBeforeSavingHeuristicStatus(
-                                    boolean failBeforeSavingHeuristicStatus)
-   {
-      ((MockLogger)logger).setFailBeforeSavingHeuristicStatus(
-                                             failBeforeSavingHeuristicStatus);
-   }
-
-   public boolean isFailAfterSavingHeuristicStatus()
-   {
-      return ((MockLogger)logger).isFailAfterSavingHeuristicStatus();
-   }
-
-   public void setFailAfterSavingHeuristicStatus(
-                                    boolean failAfterSavingHeuristicStatus)
-   {
-      ((MockLogger)logger).setFailAfterSavingHeuristicStatus(
-                                             failAfterSavingHeuristicStatus);
-   }
-
-   public boolean isFailBeforeClearingHeuristicStatus()
-   {
-      return ((MockLogger)logger).isFailBeforeClearingHeuristicStatus();
-   }
-
-   public void setFailBeforeClearingHeuristicStatus(
-                                    boolean failBeforeClearingHeuristicStatus)
-   {
-      ((MockLogger)logger).setFailBeforeClearingHeuristicStatus(
-                                             failBeforeClearingHeuristicStatus);
-   }
-
-   public boolean isFailAfterClearingHeuristicStatus()
-   {
-      return ((MockLogger)logger).isFailAfterClearingHeuristicStatus();
-   }
-
-   public void setFailAfterClearingHeuristicStatus(
-                                    boolean failAfterClearingHeuristicStatus)
-   {
-      ((MockLogger)logger).setFailAfterClearingHeuristicStatus(
-                                             failAfterClearingHeuristicStatus);
-   }
-
-   public void startService() throws Exception
-   {
-      super.startService();
-      TxManager.getInstance().setRecoveryLogger(logger);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/bean/MockLoggerServiceMBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/bean/MockLoggerServiceMBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/bean/MockLoggerServiceMBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,83 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.bean;
-
-import org.jboss.tm.recovery.BatchRecoveryLoggerServiceMBean;
-
-/**
- * A MockLoggerServiceMBean.
- *
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface MockLoggerServiceMBean 
-      extends BatchRecoveryLoggerServiceMBean
-{
-   boolean isCrashOnFailure();
-   
-   void setCrashOnFailure(boolean crashOnFailure);
-   
-   int getFailBefore();
-
-   void setFailBefore(int failBefore);
-
-   int getFailAfter();
-
-   void setFailAfter(int failAfter);
-
-   boolean isFailBeforeCommitting();
-
-   void setFailBeforeCommitting(boolean failBeforeCommitting);
-
-   boolean isFailAfterCommitting();
-   
-   void setFailAfterCommitting(boolean failAfterCommitting);
-   
-   boolean isFailBeforePreparing();
-
-   void setFailBeforePreparing(boolean failBeforePreparing);
-
-   boolean isFailAfterPreparing();
-   
-   void setFailAfterPreparing(boolean failAfterPreparing);
-
-   boolean isFailBeforeSavingHeuristicStatus();
-   
-   void setFailBeforeSavingHeuristicStatus(
-                                    boolean failBeforeSavingHeuristicStatus);
-   
-   boolean isFailAfterSavingHeuristicStatus();
-   
-   void setFailAfterSavingHeuristicStatus(
-                                    boolean failAfterSavingHeuristicStatus);
-   
-   boolean isFailBeforeClearingHeuristicStatus();
-   
-   void setFailBeforeClearingHeuristicStatus(
-                                    boolean failBeforeClearingHeuristicStatus);
-   
-   boolean isFailAfterClearingHeuristicStatus();
-   
-   void setFailAfterClearingHeuristicStatus(
-                                    boolean failBeforeClearingHeuristicStatus);
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableFactory.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableFactory.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableFactory.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,60 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.bean;
-
-import org.jboss.aop.Dispatcher;
-import org.jboss.aspects.remoting.Remoting;
-import org.jboss.system.ServiceMBeanSupport;
-import org.jboss.test.recover.interfaces.RemoteDummyRecoverable;
-import org.jboss.tm.recovery.Recoverable;
-
-/**
- * Obsolete class to be deleted soon.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RemoteDummyRecoverableFactory
-      extends ServiceMBeanSupport
-      implements RemoteDummyRecoverableFactoryMBean
-{
-   public Recoverable create(String id)
-      throws Exception
-   {
-      try
-      {
-         Recoverable target = new RemoteDummyRecoverable(id);
-
-         Dispatcher.singleton.registerTarget("Recoverable/" + id, target);
-         Recoverable proxy = (Recoverable)Remoting.createRemoteProxy(
-                                                   "Recoverable/" + id, 
-                                                   RemoteDummyRecoverable.class, 
-                                                   "socket://localhost:5150");
-         return proxy;
-      }
-      catch (Throwable ex)
-      {
-         log.error("failed", ex);
-         throw new RuntimeException(ex.getMessage());
-      }
-   }
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableFactoryMBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableFactoryMBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableFactoryMBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,36 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.bean;
-
-import org.jboss.system.ServiceMBean;
-import org.jboss.tm.recovery.Recoverable;
-
-/**
- * Obsolete interface to be deleted soon.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface RemoteDummyRecoverableFactoryMBean extends ServiceMBean
-{
-   public Recoverable create(String id) throws Exception;
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableService.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableService.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableService.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,80 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.bean;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-
-import org.jboss.aop.Dispatcher;
-import org.jboss.aspects.remoting.Remoting;
-import org.jboss.naming.Util;
-import org.jboss.system.ServiceMBeanSupport;
-import org.jboss.test.recover.interfaces.RemoteDummyRecoverable;
-import org.jboss.tm.recovery.Recoverable;
-
-/**
- * Service MBean that makes a a DummyRecoverable accessible to other VMs. 
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RemoteDummyRecoverableService 
-      extends ServiceMBeanSupport 
-      implements RemoteDummyRecoverableServiceMBean
-{
-   private String id;
-   
-   public String getId()
-   {
-      return id;
-   }
-
-   public void setId(String id)
-   {
-      this.id = id;
-   }
-
-   public void startService() throws Exception
-   {
-      Recoverable target = new RemoteDummyRecoverable(id);
-
-      Dispatcher.singleton.registerTarget("Recoverable/" + id, target);
-      Recoverable proxy = 
-         (Recoverable)Remoting.createRemoteProxy(
-                                                "Recoverable/" + id, 
-                                                RemoteDummyRecoverable.class, 
-                                                "socket://0.0.0.0:5150");
-      
-      String jndiName = "RemoteDummyRecoverable/" + id;
-      Context iniCtx = new InitialContext();
-      Util.bind(iniCtx, jndiName, proxy);
-      log.debug("Bound proxy under jndiName=" + jndiName);
-   }
-
-   public void stopService() throws Exception
-   {
-      String jndiName = "RemoteDummyRecoverable/" + id;
-      Context iniCtx = new InitialContext();
-      Util.unbind(iniCtx, jndiName);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableServiceMBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableServiceMBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/bean/RemoteDummyRecoverableServiceMBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,39 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.bean;
-
-import org.jboss.system.ServiceMBean;
-
-/**
- * Interface of service MBean that makes a a DummyRecoverable accessible to 
- * other VMs. 
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface RemoteDummyRecoverableServiceMBean 
-      extends ServiceMBean
-{
-   String getId();
-   
-   void setId(String id);
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/bean/StatelessFooBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/bean/StatelessFooBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/bean/StatelessFooBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,100 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.bean;
-
-import javax.ejb.EJBException;
-import javax.transaction.RollbackException;
-import javax.transaction.SystemException;
-import javax.transaction.Transaction;
-import javax.transaction.TransactionManager;
-import javax.transaction.xa.XAResource;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.StatelessFoo;
-import org.jboss.tm.recovery.Recoverable;
-
-/**
- * Stateless EJB3 used for recovery testing.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class StatelessFooBean implements StatelessFoo
-{
-   private static final Logger log = Logger.getLogger(StatelessFooBean.class);
-
-   private TransactionManager tm;
-   private Recoverable recoverable1;
-   private Recoverable recoverable2;
-   private Recoverable recoverable3;
-
-   public void setTransactionManager(TransactionManager tm)
-   {
-      this.tm = tm;
-   }
-   
-   public void setRecoverable1(Recoverable recoverable1)
-   {
-      this.recoverable1 = recoverable1;
-   }
-   
-   public void setRecoverable2(Recoverable recoverable2)
-   {
-      this.recoverable2 = recoverable2;
-   }
-   
-   public void setRecoverable3(Recoverable recoverable3)
-   {
-      this.recoverable3 = recoverable3;
-   }
-   
-   public void method()
-   {
-      log.info("method called");
-      try
-      {
-         Transaction tx = tm.getTransaction();
-         log.info("tx=" + tx);
-
-         XAResource xaRes1 = recoverable1.getResource();
-         tx.enlistResource(xaRes1);
-         log.info("enlisted xaRes1=" + xaRes1);
-         XAResource xaRes2 = recoverable2.getResource();
-         tx.enlistResource(xaRes2);
-         log.info("enlisted xaRes2=" + xaRes2);
-         XAResource xaRes3 = recoverable3.getResource();
-         tx.enlistResource(xaRes3);
-         log.info("enlisted xaRes3=" + xaRes3);
-      }
-      catch (SystemException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RollbackException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/bean/XAResourceEnlisterBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/bean/XAResourceEnlisterBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/bean/XAResourceEnlisterBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,143 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.bean;
-
-import javax.ejb.EJBException;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-import javax.transaction.RollbackException;
-import javax.transaction.SystemException;
-import javax.transaction.Transaction;
-import javax.transaction.TransactionManager;
-import javax.transaction.xa.XAResource;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.util.ejb.SessionSupport;
-import org.jboss.tm.recovery.Recoverable;
-
-/**
- * A XAResourceEnlisterBean.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class XAResourceEnlisterBean 
-      extends SessionSupport
-{
-   private static final Logger log = 
-      Logger.getLogger(XAResourceEnlisterBean.class);
-
-   private TransactionManager tm;
-   private Recoverable recoverable1;
-   private Recoverable recoverable2;
-   private Recoverable recoverable3;
-
-   public void ejbCreate()
-   {
-      try
-      {
-         Context ctx = new InitialContext();
-         tm = (TransactionManager) ctx.lookup("java:/TransactionManager");
-         recoverable1 = (Recoverable) ctx.lookup("DummyRecoverableProxy1");
-         recoverable2 = (Recoverable) ctx.lookup("DummyRecoverableProxy2");
-         recoverable3 = (Recoverable) ctx.lookup("DummyRecoverableProxy3");
-      }
-      catch (NamingException e)
-      {
-         throw new EJBException(e); 
-      }
-   }
-
-   public void method()
-   {
-      log.info("method called");
-      try
-      {
-         Transaction tx = tm.getTransaction();
-         log.info("tx=" + tx);
-
-         XAResource xaRes1 = recoverable1.getResource();
-         tx.enlistResource(xaRes1);
-         log.info("enlisted xaRes1=" + xaRes1);
-         XAResource xaRes2 = recoverable2.getResource();
-         tx.enlistResource(xaRes2);
-         log.info("enlisted xaRes2=" + xaRes2);
-         XAResource xaRes3 = recoverable3.getResource();
-         tx.enlistResource(xaRes3);
-         log.info("enlisted xaRes3=" + xaRes3);
-      }
-      catch (SystemException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RollbackException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-   }
-
-   public void enlistXAResource(int i)
-   {
-      log.info("enlistXAResrouce(" + i + ") called");
-      try
-      {
-         XAResource xaRes;
-         Transaction tx = tm.getTransaction();
-         log.info("tx=" + tx);
-         
-         switch (i)
-         {
-            case 1:
-               xaRes = recoverable1.getResource();
-               tx.enlistResource(xaRes);
-               log.info("enlisted xaRes1=" + xaRes);
-               break;
-            case 2:
-               xaRes = recoverable2.getResource();
-               tx.enlistResource(xaRes);
-               log.info("enlisted xaRes2=" + xaRes);
-               break;
-            case 3:
-               xaRes = recoverable3.getResource();
-               tx.enlistResource(xaRes);
-               log.info("enlisted xaRes3=" + xaRes);
-               break;
-            default:
-               throw new EJBException("There is no XAResource " + i);
-         }
-      }
-      catch (SystemException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RollbackException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      
-   }
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/bean/XAResourceEnlisterCallerBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/bean/XAResourceEnlisterCallerBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/bean/XAResourceEnlisterCallerBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,395 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.bean;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.CreateException;
-import javax.ejb.EJBException;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.RollbackException;
-import javax.transaction.SystemException;
-import javax.transaction.Transaction;
-import javax.transaction.TransactionManager;
-import javax.transaction.xa.XAResource;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.XAResourceEnlister;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterHome;
-import org.jboss.test.util.ejb.SessionSupport;
-import org.jboss.tm.recovery.Recoverable;
-
-/**
- * A XAResourceEnlisterCallerBean.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class XAResourceEnlisterCallerBean 
-      extends SessionSupport
-{
-   private static final Logger log = 
-      Logger.getLogger(XAResourceEnlisterCallerBean.class);
-
-   private TransactionManager tm;
-   private Recoverable recoverable1;
-   private Recoverable recoverable2;
-   private XAResourceEnlister xaResEnlisterJBRem1; 
-   private XAResourceEnlister xaResEnlisterJBRem2;
-   private XAResourceEnlister xaResEnlisterIIOP1; 
-   private XAResourceEnlister xaResEnlisterIIOP2;
-   
-   public void ejbCreate()
-   {
-      try
-      {
-         Context ctx = new InitialContext();
-         
-         tm = (TransactionManager) ctx.lookup("java:/TransactionManager");
-         recoverable1 = (Recoverable) ctx.lookup("DummyRecoverableProxy1");
-         recoverable2 = (Recoverable) ctx.lookup("DummyRecoverableProxy2");
-         
-         Object obj;
-         XAResourceEnlisterHome home;
-         
-         obj = ctx.lookup("java:comp/env/ejb/XAResEnlisterJBRem1");
-         home = (XAResourceEnlisterHome) 
-            PortableRemoteObject.narrow(obj, XAResourceEnlisterHome.class);
-         xaResEnlisterJBRem1 = home.create();
-
-         obj = ctx.lookup("java:comp/env/ejb/XAResEnlisterJBRem2");
-         home = (XAResourceEnlisterHome) 
-            PortableRemoteObject.narrow(obj, XAResourceEnlisterHome.class);
-         xaResEnlisterJBRem2 = home.create();
-
-         obj = ctx.lookup("java:comp/env/ejb/XAResEnlisterIIOP1");
-         home = (XAResourceEnlisterHome) 
-            PortableRemoteObject.narrow(obj, XAResourceEnlisterHome.class);
-         xaResEnlisterIIOP1 = home.create();
-
-         obj = ctx.lookup("java:comp/env/ejb/XAResEnlisterIIOP2");
-         home = (XAResourceEnlisterHome) 
-            PortableRemoteObject.narrow(obj, XAResourceEnlisterHome.class);
-         xaResEnlisterIIOP2 = home.create();
-      }
-      catch (NamingException e)
-      {
-         log.info(e);
-         throw new EJBException(e); 
-      }
-      catch (RemoteException e)
-      {
-         log.info(e);
-         throw new EJBException(e); 
-      }
-      catch (CreateException e)
-      {
-         log.info(e);
-         throw new EJBException(e); 
-      }
-      
-   }
-
-   public void callXAResourceEnlistersOverJBRem()
-   {
-      log.info("callXAResourceEnlistersOverJBRem called");
-      try
-      {
-         Transaction tx = tm.getTransaction();
-         log.info("tx=" + tx);
-
-         // enlist XA resources
-         XAResource xaRes1 = recoverable1.getResource();
-         tx.enlistResource(xaRes1);
-         log.info("enlisted xaRes1=" + xaRes1);
-         XAResource xaRes2 = recoverable2.getResource();
-         tx.enlistResource(xaRes2);
-         log.info("enlisted xaRes2=" + xaRes2);
-         
-         // access remote resources
-         xaResEnlisterJBRem1.method();
-         xaResEnlisterJBRem2.method();
-      }
-      catch (SystemException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RollbackException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RemoteException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-   }
-
-   public void callXAResourceEnlistersOverIIOP()
-   {
-      log.info("callXAResourceEnlistersOverIIOP called");
-      try
-      {
-         Transaction tx = tm.getTransaction();
-         log.info("tx=" + tx);
-
-         // enlist XA resources
-         XAResource xaRes1 = recoverable1.getResource();
-         tx.enlistResource(xaRes1);
-         log.info("enlisted xaRes1=" + xaRes1);
-         XAResource xaRes2 = recoverable2.getResource();
-         tx.enlistResource(xaRes2);
-         log.info("enlisted xaRes2=" + xaRes2);
-         
-         // access remote resources
-         xaResEnlisterIIOP1.method();
-         xaResEnlisterIIOP2.method();
-      }
-      catch (SystemException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RollbackException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RemoteException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-   }
-   
-   public void callXAResourceEnlistersOverJBRemAndIIOP()
-   {
-      log.info("callXAResourceEnlistersOverJBRemAndIIOP called");
-      try
-      {
-         Transaction tx = tm.getTransaction();
-         log.info("tx=" + tx);
-
-         // enlist XA resources
-         XAResource xaRes1 = recoverable1.getResource();
-         tx.enlistResource(xaRes1);
-         log.info("enlisted xaRes1=" + xaRes1);
-         XAResource xaRes2 = recoverable2.getResource();
-         tx.enlistResource(xaRes2);
-         log.info("enlisted xaRes2=" + xaRes2);
-         
-         // access remote resources
-         xaResEnlisterJBRem1.method();
-         xaResEnlisterIIOP2.method();
-      }
-      catch (SystemException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RollbackException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RemoteException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-   }
-
-   public void callXAResourceEnlistersOverIIOPAndJBRem()
-   {
-      log.info("callXAResourceEnlistersOverIIOPAndJBRem called");
-      try
-      {
-         Transaction tx = tm.getTransaction();
-         log.info("tx=" + tx);
-
-         // enlist XA resources
-         XAResource xaRes1 = recoverable1.getResource();
-         tx.enlistResource(xaRes1);
-         log.info("enlisted xaRes1=" + xaRes1);
-         XAResource xaRes2 = recoverable2.getResource();
-         tx.enlistResource(xaRes2);
-         log.info("enlisted xaRes2=" + xaRes2);
-         
-         // access remote resources
-         xaResEnlisterIIOP1.method();
-         xaResEnlisterJBRem2.method();
-      }
-      catch (SystemException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RollbackException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RemoteException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-   }
-
-   public void enlistOneXAResourcePerAppServerOverJBRem()
-   {
-      log.info("enlistOneXAResourcePerServerOverJBRem called");
-      try
-      {
-         Transaction tx = tm.getTransaction();
-         log.info("tx=" + tx);
-
-         // enlist XA resource 1
-         XAResource xaRes1 = recoverable1.getResource();
-         tx.enlistResource(xaRes1);
-         
-         // access remote resources
-         xaResEnlisterJBRem1.enlistXAResource(2);
-         xaResEnlisterJBRem2.enlistXAResource(3);
-      }
-      catch (SystemException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RollbackException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RemoteException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-   }
-
-   public void enlistOneXAResourcePerAppServerOverIIOP()
-   {
-      log.info("enlistOneXAResourcePerServerOverIIOP called");
-      try
-      {
-         Transaction tx = tm.getTransaction();
-         log.info("tx=" + tx);
-
-         // enlist XA resource 1
-         XAResource xaRes1 = recoverable1.getResource();
-         tx.enlistResource(xaRes1);
-         
-         // access remote resources
-         xaResEnlisterIIOP1.enlistXAResource(2);
-         xaResEnlisterIIOP2.enlistXAResource(3);
-      }
-      catch (SystemException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RollbackException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RemoteException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-   }
-
-   public void enlistOneXAResourcePerAppServerOverJBRemAndIIOP()
-   {
-      log.info("enlistOneXAResourcePerServerOverJBRemAndIIOP called");
-      try
-      {
-         Transaction tx = tm.getTransaction();
-         log.info("tx=" + tx);
-
-         // enlist XA resource 1
-         XAResource xaRes1 = recoverable1.getResource();
-         tx.enlistResource(xaRes1);
-         
-         // access remote resources
-         xaResEnlisterJBRem1.enlistXAResource(2);
-         xaResEnlisterIIOP2.enlistXAResource(3);
-      }
-      catch (SystemException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RollbackException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RemoteException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-   }
-
-   public void enlistOneXAResourcePerAppServerOverIIOPAndJBRem()
-   {
-      log.info("enlistOneXAResourcePerServerOverIIOPAndJBRem called");
-      try
-      {
-         Transaction tx = tm.getTransaction();
-         log.info("tx=" + tx);
-
-         // enlist XA resource 1
-         XAResource xaRes1 = recoverable1.getResource();
-         tx.enlistResource(xaRes1);
-         
-         // access remote resources
-         xaResEnlisterIIOP1.enlistXAResource(2);
-         xaResEnlisterJBRem2.enlistXAResource(3);
-      }
-      catch (SystemException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RollbackException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-      catch (RemoteException e)
-      {
-         log.info(e);
-         throw new EJBException(e);
-      }
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/derby/EmbeddedDerbyRecoverable.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/derby/EmbeddedDerbyRecoverable.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/derby/EmbeddedDerbyRecoverable.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,156 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.derby;
-
-import org.jboss.tm.recovery.Recoverable;
-import org.jboss.tm.recovery.RecoveryManagerServiceMBean;
-import org.jboss.system.ServiceMBeanSupport;
-
-import javax.transaction.xa.XAResource;
-import javax.transaction.xa.Xid;
-import javax.transaction.xa.XAException;
-import javax.sql.XAConnection;
-import java.sql.DriverManager;
-import java.sql.SQLException;
-
-import org.apache.derby.jdbc.EmbeddedXADataSource;
-
-/**
- * Test for embedded Derby.
- *
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class EmbeddedDerbyRecoverable 
-      extends ServiceMBeanSupport 
-      implements Recoverable, EmbeddedDerbyRecoverableMBean
-{
-   private String id;
-   private String databaseName;
-   private String user;
-   private String password;
-   private String createDatabase;
-   private RecoveryManagerServiceMBean manager;
-   private EmbeddedXADataSource xads;
-   private XAConnection connection;
-   private XAResource resource;
-
-
-   protected void startService() throws Exception
-   {
-      super.startService();
-      xads = new EmbeddedXADataSource();
-      xads.setDatabaseName(databaseName);
-      xads.setUser(user);
-      xads.setPassword(password);
-      xads.setCreateDatabase(createDatabase);
-      manager.registerRecoverable(this);
-   }
-
-   public void setManager(RecoveryManagerServiceMBean manager)
-   {
-      this.manager = manager;
-   }
-
-
-   public String getId()
-   {
-      return id;
-   }
-
-   public void setId(String id)
-   {
-      this.id = id;
-   }
-
-   public String getDatabaseName()
-   {
-      return databaseName;
-   }
-
-   public void setDatabaseName(String databaseName)
-   {
-      this.databaseName = databaseName;
-   }
-
-   public String getUser()
-   {
-      return user;
-   }
-
-   public void setUser(String user)
-   {
-      this.user = user;
-   }
-
-   public String getPassword()
-   {
-      return password;
-   }
-
-   public void setPassword(String password)
-   {
-      this.password = password;
-   }
-
-   public String getCreateDatabase()
-   {
-      return createDatabase;
-   }
-
-   public void setCreateDatabase(String createDatabase)
-   {
-      this.createDatabase = createDatabase;
-   }
-
-   public XAResource getResource()
-   {
-      try
-      {
-         connection = xads.getXAConnection();
-         resource = connection.getXAResource();
-         return resource;
-      }
-      catch (SQLException e)
-      {
-         throw new RuntimeException(e);
-      }
-   }
-
-   public Xid[] scan() throws XAException
-   {
-      return resource.recover(XAResource.TMSTARTRSCAN | XAResource.TMENDRSCAN);
-   }
-
-   public void cleanupResource()
-   {
-      try
-      {
-         System.out.println("EmbeddedDerbyRecoverable \"" + getServiceName() + "\": closing XA connection");
-         connection.close();
-      }
-      catch (SQLException e)
-      {
-         throw new RuntimeException(e);
-      }
-   }
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/derby/EmbeddedDerbyRecoverableMBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/derby/EmbeddedDerbyRecoverableMBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/derby/EmbeddedDerbyRecoverableMBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,56 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.derby;
-
-import org.jboss.tm.recovery.RecoveryManagerServiceMBean;
-import org.jboss.system.ServiceMBean;
-
-/**
- * Comment
- *
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface EmbeddedDerbyRecoverableMBean extends ServiceMBean
-{
-   void setManager(RecoveryManagerServiceMBean manager);
-
-   String getId();
-
-   void setId(String id);
-
-   String getDatabaseName();
-
-   void setDatabaseName(String databaseName);
-
-   String getUser();
-
-   void setUser(String username);
-
-   String getPassword();
-
-   void setPassword(String password);
-
-   String getCreateDatabase();
-
-   void setCreateDatabase(String createDatabase);
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/interfaces/Account.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/interfaces/Account.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/interfaces/Account.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,48 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.interfaces;
-
-import java.rmi.RemoteException;
-import javax.ejb.EJBObject;
-
-/**
- * Remote interface of the Account bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface Account
-   extends EJBObject
-{
-   public int getBalance()
-      throws RemoteException;
-
-   public void setBalance(int value)
-      throws RemoteException;
-
-   public void addToBalance(int value)
-      throws RemoteException;
-
-   public void setRollbackOnly()
-      throws RemoteException;
-}
-

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/interfaces/AccountHome.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/interfaces/AccountHome.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/interfaces/AccountHome.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,43 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.interfaces;
-
-import java.rmi.RemoteException;
-import javax.ejb.CreateException;
-import javax.ejb.EJBHome;
-import javax.ejb.FinderException;
-
-/** 
- * Home interface of the AccountEntity bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface AccountHome
-   extends EJBHome
-{
-   public Account create(String name, int initialBalance)
-      throws RemoteException, CreateException;
-
-	public Account findByPrimaryKey(String name) 
-      throws RemoteException, FinderException;
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/interfaces/DummyRecoverable.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/interfaces/DummyRecoverable.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/interfaces/DummyRecoverable.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,71 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.interfaces;
-
-import org.jboss.tm.recovery.Recoverable;
-
-import javax.transaction.xa.XAException;
-import javax.transaction.xa.XAResource;
-import javax.transaction.xa.Xid;
-
-/**
- * Dummy <code>Recoverable</code> implementation used for transaction
- * recovery testing.
- *
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @version $Revision$
- */
-public class DummyRecoverable implements Recoverable
-{
-   private String id;
-   private XAResource resource;
-
-   public DummyRecoverable()
-   {
-   }
-
-   public DummyRecoverable(String id, XAResource resource)
-   {
-      this.id = id;
-      this.resource = resource;
-   }
-
-   public String getId()
-   {
-      return id;
-   }
-
-   public XAResource getResource()
-   {
-      return resource;
-   }
-
-   public Xid[] scan() throws XAException
-   {
-      return resource.recover(XAResource.TMSTARTRSCAN);
-   }
-
-   public void cleanupResource()
-   {
-   }
-   
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/interfaces/DummyXAResource.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/interfaces/DummyXAResource.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/interfaces/DummyXAResource.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,93 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.interfaces;
-
-import javax.transaction.xa.XAResource;
-
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * Interface of dummy <code>XAResource</code> instances used for transaction
- * recovery testing.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface DummyXAResource 
-      extends XAResource
-{
-
-   void clear();
-
-   int getCommittedCount();
-
-   void setCommittedCount(int committedCount);
-
-   int getPreparedCount();
-
-   void setPreparedCount(int preparedCount);
-
-   int getForgetCount();
-
-   void setForgetCount(int forgetCount);
-
-   int getRollbackCount();
-
-   void setRollbackCount(int rollbackCount);
-
-   void setPrepareErrorCode(int prepareErrorCode);
-
-   void clearPrepareErrorCode();
-
-   void setCommitErrorCode(int commitErrorCode);
-
-   void clearCommitErrorCode();
-
-   void setRollbackErrorCode(int rollbackErrorCode);
-
-   void clearRollbackErrorCode();
-
-   void setPrepareException(RecoveryTestingException prepareException);
-
-   void clearPrepareException();
-
-   void setAfterPrepareException(RecoveryTestingException afterPrepareException);
-
-   void clearAfterPrepareException();
-
-   void setCommitException(RecoveryTestingException commitException);
-
-   void clearCommitException();
-   
-   void setAfterCommitException(RecoveryTestingException afterCommitException);
-
-   void clearAfterCommitException();
-   
-   void setRollbackException(RecoveryTestingException rollbackException);
-
-   void clearRollbackException();
-
-   void setAfterRollbackException(RecoveryTestingException afterRollbackException);
-
-   void clearAfterRollbackException();
-   
-}
\ No newline at end of file

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/interfaces/DummyXAResourceImpl.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/interfaces/DummyXAResourceImpl.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/interfaces/DummyXAResourceImpl.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,338 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.interfaces;
-
-import java.util.HashSet;
-
-import javax.transaction.xa.XAException;
-import javax.transaction.xa.XAResource;
-import javax.transaction.xa.Xid;
-
-import org.jboss.logging.Logger;
-import org.jboss.tm.XidImpl;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * Dummy <code>XAResource</code> implementation used for transaction
- * recovery testing.
- *
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class DummyXAResourceImpl 
-      implements XAResource, DummyXAResource
-{
-   private Logger log = Logger.getLogger(this.getClass());
-   private HashSet prepared = new HashSet();
-
-   private int committedCount;
-   private int preparedCount;
-   private int forgetCount;
-   private int rollbackCount;
-   private int prepareErrorCode;
-   private int commitErrorCode;
-   private int rollbackErrorCode;
-   private RecoveryTestingException prepareException;
-   private RecoveryTestingException afterPrepareException;
-   private RecoveryTestingException commitException;
-   private RecoveryTestingException afterCommitException;
-   private RecoveryTestingException rollbackException;
-   private RecoveryTestingException afterRollbackException;
-   
-
-   public DummyXAResourceImpl()
-   {
-   }
-
-   public synchronized void clear()
-   {
-      log.info("clear");
-      committedCount = 0;
-      preparedCount = 0;
-      forgetCount = 0;
-      rollbackCount = 0;
-      prepared.clear();
-   }
-
-   public synchronized int getCommittedCount()
-   {
-      log.info("getCommittedCount");
-      return committedCount;
-   }
-
-   public synchronized void setCommittedCount(int committedCount)
-   {
-      log.info("setCommittedCount");
-      this.committedCount = committedCount;
-   }
-
-   public synchronized int getPreparedCount()
-   {
-      log.info("getPreparedCount");
-      return preparedCount;
-   }
-
-   public synchronized void setPreparedCount(int preparedCount)
-   {
-      log.info("setPreparedCount");
-      this.preparedCount = preparedCount;
-   }
-
-   public synchronized int getForgetCount()
-   {
-      log.info("getForgetCount");
-      return forgetCount;
-   }
-
-   public synchronized void setForgetCount(int forgetCount)
-   {
-      log.info("setForgetCount");
-      this.forgetCount = forgetCount;
-   }
-
-   public synchronized int getRollbackCount()
-   {
-      log.info("getRollbackCount");
-      return rollbackCount;
-   }
-
-   public synchronized void setRollbackCount(int rollbackCount)
-   {
-      log.info("setRollbackCount");
-      this.rollbackCount = rollbackCount;
-   }
-   
-   public synchronized void setPrepareErrorCode(int prepareErrorCode)
-   {
-      log.info("setPrepareErrorCode");
-      this.prepareErrorCode = prepareErrorCode;
-   }
-   
-   public synchronized void clearPrepareErrorCode()
-   {
-      log.info("clearPrepareErrorCode");
-      prepareErrorCode = 0;
-   }
-   
-   public synchronized void setCommitErrorCode(int commitErrorCode)
-   {
-      log.info("setCommitErrorCode");
-      this.commitErrorCode = commitErrorCode;
-   }
-   
-   public synchronized void clearCommitErrorCode()
-   {
-      log.info("clearCommitErrorCode");
-      commitErrorCode = 0;
-   }
-   
-   public synchronized void setRollbackErrorCode(int rollbackErrorCode)
-   {
-      log.info("setRollbackErrorCode");
-      this.rollbackErrorCode = rollbackErrorCode;
-   }
-   
-   public synchronized void clearRollbackErrorCode()
-   {
-      log.info("clearRollbackErrorCode");
-      rollbackErrorCode = 0;
-   }
-   
-   public synchronized void setPrepareException(RecoveryTestingException prepareException)
-   {
-      log.info("setPrepareException");
-      this.prepareException = prepareException;
-   }
-   
-   public synchronized void clearPrepareException()
-   {
-      log.info("clearPrepareException");
-      prepareException = null;
-   }
-   
-   public synchronized void setAfterPrepareException(
-                                 RecoveryTestingException afterPrepareException)
-   {
-      log.info("setAfterPrepareException");
-      this.afterPrepareException = afterPrepareException;
-   }
-   
-   public synchronized void clearAfterPrepareException()
-   {
-      log.info("clearAfterPrepareException");
-      afterPrepareException = null;
-   }
-   
-   public synchronized void setCommitException(RecoveryTestingException commitException)
-   {
-      log.info("setCommitException");
-      this.commitException = commitException;
-   }
-   
-   public synchronized void clearCommitException()
-   {
-      log.info("clearCommitException");
-      commitException = null;
-   }
-   
-   public synchronized void setAfterCommitException(
-                                 RecoveryTestingException afterCommitException)
-   {
-      log.info("setAfterCommitException");
-      this.afterCommitException = afterCommitException;
-   }
-
-   public synchronized void clearAfterCommitException()
-   {
-      log.info("clearAfterCommitException");
-      afterCommitException = null;
-   }
-
-   public synchronized void setRollbackException(RecoveryTestingException rollbackException)
-   {
-      log.info("setRollbackException");
-      this.rollbackException = rollbackException;
-   }
-   
-   public synchronized void clearRollbackException()
-   {
-      log.info("clearRollbackException");
-      rollbackException = null;
-   }
-   
-   public synchronized void setAfterRollbackException(
-                              RecoveryTestingException afterRollbackException)
-   {
-      log.info("setAfterRollbackException");
-      this.afterRollbackException = afterRollbackException;
-   }
-
-   public synchronized void clearAfterRollbackException()
-   {
-      log.info("clearAfterRollbackException");
-      afterRollbackException = null;
-   }
-
-   public synchronized void commit(Xid xid, boolean onePhase) throws XAException
-   {
-      log.info("commit " + XidImpl.toString(xid));
-
-      if (commitException != null)
-         throw commitException;
-
-      if (commitErrorCode != 0)
-         throw new XAException(commitErrorCode);
-      
-      if (!prepared.remove(xid) && !onePhase) 
-         throw new RuntimeException("xid " + xid + 
-                                    " is not in prepared map of size " + 
-                                    prepared.size());
-      committedCount++;
-
-      if (afterCommitException != null)
-         throw afterCommitException;
-   }
-
-   public synchronized void end(Xid xid, int i) throws XAException
-   {
-      log.info("end " + XidImpl.toString(xid));
-   }
-
-   public synchronized void forget(Xid xid) throws XAException
-   {
-      log.info("forget " + XidImpl.toString(xid));
-
-      if (!prepared.remove(xid)) 
-         throw new RuntimeException("xid " + xid + 
-                                    " is not in prepared map of size " + 
-                                    prepared.size());
-      forgetCount++;
-   }
-
-   public synchronized int getTransactionTimeout() throws XAException
-   {
-      log.info("getTransactionTimeout");
-      return 30000;
-   }
-
-   public synchronized boolean isSameRM(XAResource xaResource) throws XAException
-   {
-      log.info("isSameRM");
-      return false;
-   }
-
-   public synchronized int prepare(Xid xid) throws XAException
-   {
-      log.info("prepare " + XidImpl.toString(xid));
-
-      if (prepareException != null)
-         throw prepareException;
-      
-      if (prepareErrorCode != 0)
-         throw new XAException(prepareErrorCode);
-
-      prepared.add(xid);
-      preparedCount++;
-      
-      if (afterPrepareException != null)
-         throw afterPrepareException;
-      
-      return XA_OK;
-   }
-
-   public synchronized Xid[] recover(int i) throws XAException
-   {
-      log.info("recover");
-      return (Xid[]) prepared.toArray(new Xid[prepared.size()]);
-   }
-
-   public synchronized void rollback(Xid xid) throws XAException
-   {
-      log.info("rollback " + XidImpl.toString(xid));
-
-      if (rollbackException != null)
-         throw rollbackException;
-      
-      if (rollbackErrorCode != 0)
-         throw new XAException(rollbackErrorCode);
-
-      prepared.remove(xid);
-
-      rollbackCount++;
-
-      if (afterRollbackException != null)
-         throw afterRollbackException;
-   }
-
-   public synchronized boolean setTransactionTimeout(int i) throws XAException
-   {
-      log.info("setTransactionTimeout");
-      return false;
-   }
-
-   public synchronized void start(Xid xid, int i) throws XAException
-   {
-      log.info("start " + XidImpl.toString(xid));
-   }
-   
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/interfaces/FrontEnd.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/interfaces/FrontEnd.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/interfaces/FrontEnd.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,86 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.interfaces;
-
-import java.rmi.RemoteException;
-import javax.ejb.EJBObject;
-
-/**
- * Remote interface of the FrontEnd stateful session bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface FrontEnd
-   extends EJBObject
-{
-   public void setBalancesOverJBRem(int value1, int value2)
-      throws RemoteException;
-
-   public void setBalancesOverIIOP(int value1, int value2)
-      throws RemoteException;
-
-   public void setBalancesOverJBRemAndIIOP(int value1, int value2)
-      throws RemoteException;
-
-   public void setBalancesOverIIOPAndJBRem(int value1, int value2)
-      throws RemoteException;
-
-   public int[] getBalancesOverJBRem()
-      throws RemoteException;
-
-   public int[] getBalancesOverIIOP()
-      throws RemoteException;
-
-   public int[] getBalancesOverJBRemAndIIOP()
-      throws RemoteException;
-
-   public int[] getBalancesOverIIOPAndJBRem()
-      throws RemoteException;
-
-   public void addToBalancesOverJBRem(int value)
-      throws RemoteException;
-
-   public void addToBalancesOverIIOP(int value)
-      throws RemoteException;
-
-   public void addToBalancesOverJBRemAndIIOP(int value)
-      throws RemoteException;
-
-   public void addToBalancesOverIIOPAndJBRem(int value)
-      throws RemoteException;
-
-   public void setRollbackOnly()
-      throws RemoteException;
-
-   public void tellFirstAccountToSetRollbackOnlyOverJBRem()
-      throws RemoteException;
-
-   public void tellFirstAccountToSetRollbackOnlyOverIIOP()
-      throws RemoteException;
-
-   public void tellSecondAccountToSetRollbackOnlyOverJBRem()
-      throws RemoteException;
-
-   public void tellSecondAccountToSetRollbackOnlyOverIIOP()
-      throws RemoteException;
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/interfaces/FrontEndHome.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/interfaces/FrontEndHome.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/interfaces/FrontEndHome.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,43 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.interfaces;
-
-
-import java.rmi.RemoteException;
-import javax.ejb.CreateException;
-import javax.ejb.EJBHome;
-
-/** 
- * Home interface of the FrontEnd stateful session bean.
- *
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface FrontEndHome
-   extends EJBHome
-{
-   public FrontEnd create(String name)
-      throws RemoteException, CreateException;
-
-   public FrontEnd create(String name, boolean reuseAccounts)
-      throws RemoteException, CreateException;
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/interfaces/MockLogger.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/interfaces/MockLogger.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/interfaces/MockLogger.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,304 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.interfaces;
-
-import javax.transaction.xa.Xid;
-
-import org.jboss.tm.recovery.BatchRecoveryLogger;
-import org.jboss.tm.recovery.HeuristicStatus;
-import org.jboss.tm.recovery.RecoveryTestingException;
-import org.jboss.tm.recovery.TxCompletionHandler;
-
-/**
- * Comment
- *
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class MockLogger extends BatchRecoveryLogger
-{
-   private boolean crashOnFailure = false;
-   
-   private boolean failAfterCommitting = false;
-   private boolean failAfterPreparing = false;
-   private int failAfter = 5;
-   private int failAfterCount = 0;
-
-   private boolean failBeforeCommitting = false;
-   private boolean failBeforePreparing = false;
-   private int failBefore = 5;
-   private int failBeforeCount = 0;
-
-   private boolean failAfterSavingHeuristicStatus = false;
-   private boolean failBeforeSavingHeuristicStatus = false;
-   private boolean failAfterClearingHeuristicStatus = false;
-   private boolean failBeforeClearingHeuristicStatus = false;
-   
-   private static void crash()
-   {
-      Runtime.getRuntime().halt(1);
-   }
-   
-   private void crashOrThrowRecoveryTestingException(String message)
-   {
-      if (isCrashOnFailure())
-         crash();
-      else
-         throw new RecoveryTestingException(message);
-   }
-   
-   public MockLogger()
-   {
-   }
-
-   public TxCompletionHandler saveCommitDecision(long localTransactionId,
-                                                 String[] resources)
-   {
-      if (isFailBeforeCommitting() && ++failBeforeCount > getFailBefore()) 
-         crashOrThrowRecoveryTestingException(
-                                    "FAILED BEFORE SAVING COMMIT DECISION");
-      try
-      {
-         return super.saveCommitDecision(localTransactionId, resources);
-      }
-      finally
-      {
-         if (isFailAfterCommitting() && ++failAfterCount > getFailAfter())
-            crashOrThrowRecoveryTestingException(
-                                    "FAILED AFTER SAVING COMMIT DECISION");
-      }
-   }
-
-   public TxCompletionHandler savePrepareDecision(long localTransactionId,
-                                                  int inboundFormatId,
-                                                  byte[] globalTransactionId,
-                                                  String recoveryCoordinator,
-                                                  String[] resources)
-   {
-      if (isFailBeforePreparing() && ++failBeforeCount > getFailBefore()) 
-         crashOrThrowRecoveryTestingException(
-                                    "FAILED BEFORE SAVING PREPARE DECISION");
-      try
-      {
-         return super.savePrepareDecision(localTransactionId, 
-                                          inboundFormatId,
-                                          globalTransactionId,
-                                          recoveryCoordinator,
-                                          resources);
-      }
-      finally
-      {
-         if (isFailAfterPreparing() && ++failAfterCount > getFailAfter())
-            crashOrThrowRecoveryTestingException(
-                                    "FAILED AFTER SAVING PREPARE DECISION");
-      }
-   }
-   
-   public TxCompletionHandler savePrepareDecision(long localTransactionId,
-                                                  Xid inboundXid,
-                                                  String[] resources)
-   {
-      if (isFailBeforePreparing() && ++failBeforeCount > getFailBefore()) 
-         crashOrThrowRecoveryTestingException(
-                                    "FAILED BEFORE SAVING PREPARE DECISION");
-      try
-      {
-         return super.savePrepareDecision(localTransactionId, 
-                                          inboundXid,
-                                          resources);
-      }
-      finally
-      {
-         if (isFailAfterPreparing() && ++failAfterCount > getFailAfter())
-            crashOrThrowRecoveryTestingException(
-                                    "FAILED AFTER SAVING PREPARE DECISION");
-      }
-   }
-   
-   public void saveHeuristicStatus(long localTransactionId,
-                                   boolean foreignTx,
-                                   int formatId, 
-                                   byte[] globalTransactionId,
-                                   byte[] inboundBranchQualifier,
-                                   int transactionStatus,
-                                   int heurStatusCode,
-                                   boolean locallyDetectedHeuristicHazard,
-                                   int[] xaResourceHeuristics, 
-                                   HeuristicStatus[] remoteResourceHeuristics)
-   {
-      if (isFailBeforeSavingHeuristicStatus())
-         crashOrThrowRecoveryTestingException(
-                                    "FAILED BEFORE SAVING HEURISTIC STATUS");
-      try
-      {
-         super.saveHeuristicStatus(localTransactionId,
-                                   foreignTx,
-                                   formatId, 
-                                   globalTransactionId,
-                                   inboundBranchQualifier,
-                                   transactionStatus,
-                                   heurStatusCode,
-                                   locallyDetectedHeuristicHazard,
-                                   xaResourceHeuristics, 
-                                   remoteResourceHeuristics);
-      }
-      finally
-      {
-         if (isFailAfterSavingHeuristicStatus()) 
-            crashOrThrowRecoveryTestingException(
-                                    "FAILED AFTER SAVING HEURISTIC STATUS");
-      }
-   }
-   
-   public void clearHeuristicStatus(long localTransactionId)
-   {
-      if (isFailBeforeClearingHeuristicStatus()) 
-         crashOrThrowRecoveryTestingException(
-                                    "FAILED BEFORE CLEARING HEURISTIC STATUS");
-      try
-      {
-         super.clearHeuristicStatus(localTransactionId);
-      }
-      finally
-      {
-         if (isFailAfterClearingHeuristicStatus()) 
-            crashOrThrowRecoveryTestingException(
-                                    "FAILED AFTER CLEARING HEURISTIC STATUS");
-      }
-   }
-   
-   public boolean isCrashOnFailure()
-   {
-      return crashOnFailure;
-   }
-   
-   public void setCrashOnFailure(boolean crashOnFailure)
-   {
-      this.crashOnFailure = crashOnFailure;
-   }
-   
-   public boolean isFailAfterCommitting()
-   {
-      return failAfterCommitting;
-   }
-
-   public void setFailAfterCommitting(boolean failAfterCommitting)
-   {
-      this.failAfterCommitting = failAfterCommitting;
-   }
-
-   public boolean isFailAfterPreparing()
-   {
-      return failAfterPreparing;
-   }
-
-   public void setFailAfterPreparing(boolean failAfterPreparing)
-   {
-      this.failAfterPreparing = failAfterPreparing;
-   }
-
-   public int getFailAfter()
-   {
-      return failAfter;
-   }
-
-   public void setFailAfter(int failAfter)
-   {
-      this.failAfter = failAfter;
-   }
-
-   public boolean isFailBeforeCommitting()
-   {
-      return failBeforeCommitting;
-   }
-
-   public void setFailBeforeCommitting(boolean failBeforeCommitting)
-   {
-      this.failBeforeCommitting = failBeforeCommitting;
-   }
-
-   public boolean isFailBeforePreparing()
-   {
-      return failBeforePreparing;
-   }
-
-   public void setFailBeforePreparing(boolean failBeforePreparing)
-   {
-      this.failBeforePreparing = failBeforePreparing;
-   }
-
-   public int getFailBefore()
-   {
-      return failBefore;
-   }
-
-   public void setFailBefore(int failBefore)
-   {
-      this.failBefore = failBefore;
-   }
-   
-   public boolean isFailAfterSavingHeuristicStatus()
-   {
-      return failAfterSavingHeuristicStatus;
-   }
-   
-   public void setFailAfterSavingHeuristicStatus(
-                                       boolean failAfterSavingHeuristicStatus)
-   {
-      this.failAfterSavingHeuristicStatus = failAfterSavingHeuristicStatus;
-   }
-
-   public boolean isFailBeforeSavingHeuristicStatus()
-   {
-      return failBeforeSavingHeuristicStatus;
-   }
-   
-   public void setFailBeforeSavingHeuristicStatus(
-                                       boolean failBeforeSavingHeuristicStatus)
-   {
-      this.failBeforeSavingHeuristicStatus = failBeforeSavingHeuristicStatus;
-   }
-
-   public boolean isFailAfterClearingHeuristicStatus()
-   {
-      return failAfterClearingHeuristicStatus;
-   }
-   
-   public void setFailAfterClearingHeuristicStatus(
-                                       boolean failAfterClearingHeuristicStatus)
-   {
-      this.failAfterClearingHeuristicStatus = failAfterClearingHeuristicStatus;
-   }
-
-   public boolean isFailBeforeClearingHeuristicStatus()
-   {
-      return failBeforeClearingHeuristicStatus;
-   }
-
-   public void setFailBeforeClearingHeuristicStatus(
-                                    boolean failBeforeClearingHeuristicStatus)
-   {
-      this.failBeforeClearingHeuristicStatus = failBeforeClearingHeuristicStatus;
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/interfaces/RemoteDummyRecoverable.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/interfaces/RemoteDummyRecoverable.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/interfaces/RemoteDummyRecoverable.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,61 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.interfaces;
-
-import javax.transaction.xa.XAResource;
-
-import org.jboss.aop.Dispatcher;
-import org.jboss.aspects.remoting.Remoting;
-
-/**
- * A <code>DummyRecoverable</code> that makes its <code>XAResource</code>
- * available to other VMs.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RemoteDummyRecoverable extends DummyRecoverable
-{
-   private XAResource resourceProxy; 
-
-   public RemoteDummyRecoverable()
-   {
-   }
-
-   public RemoteDummyRecoverable(String id)
-      throws Exception
-   {
-      super(id, new DummyXAResourceImpl());
-      Dispatcher.singleton.registerTarget("XAResource/" + id, 
-                                          super.getResource());
-      resourceProxy = (XAResource)Remoting.createRemoteProxy(
-                                                   "XAResource/" + id, 
-                                                   DummyXAResourceImpl.class, 
-                                                   "socket://0.0.0.0:5150");
-   }
-   
-   public XAResource getResource()
-   {
-      return resourceProxy;
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/interfaces/StatelessFoo.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/interfaces/StatelessFoo.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/interfaces/StatelessFoo.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,33 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.interfaces;
-
-/**
- * Interface of stateless EJB3 used for transaction recovery testing.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface StatelessFoo
-{
-   void method();
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlister.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlister.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlister.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,42 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.interfaces;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.EJBObject;
-
-/**
- * A XAResourceEnlister.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface XAResourceEnlister 
-      extends EJBObject
-{
-   void method() 
-         throws RemoteException;
-   
-   void enlistXAResource(int i)
-         throws RemoteException;
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlisterCaller.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlisterCaller.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlisterCaller.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,61 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.interfaces;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.EJBObject;
-
-/**
- * A XAResourceEnlisterCaller.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface XAResourceEnlisterCaller 
-      extends EJBObject
-{
-   void callXAResourceEnlistersOverJBRem() 
-         throws RemoteException;
-   
-   void callXAResourceEnlistersOverIIOP() 
-         throws RemoteException;
-   
-   void callXAResourceEnlistersOverJBRemAndIIOP()
-         throws RemoteException;
-
-   void callXAResourceEnlistersOverIIOPAndJBRem()
-         throws RemoteException;
-
-   void enlistOneXAResourcePerAppServerOverJBRem()
-         throws RemoteException;
-
-   void enlistOneXAResourcePerAppServerOverIIOP()
-         throws RemoteException;
-
-   void enlistOneXAResourcePerAppServerOverJBRemAndIIOP()
-         throws RemoteException;
-
-   void enlistOneXAResourcePerAppServerOverIIOPAndJBRem()
-         throws RemoteException;
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlisterCallerHome.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlisterCallerHome.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlisterCallerHome.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,40 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.interfaces;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.CreateException;
-import javax.ejb.EJBHome;
-
-/**
- * A XAResourceEnlisterCallerHome.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface XAResourceEnlisterCallerHome 
-      extends EJBHome
-{
-   public XAResourceEnlisterCaller create() 
-         throws RemoteException, CreateException;
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlisterHome.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlisterHome.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/interfaces/XAResourceEnlisterHome.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,40 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.interfaces;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.CreateException;
-import javax.ejb.EJBHome;
-
-/**
- * A XAResourceEnlisterHome.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public interface XAResourceEnlisterHome 
-      extends EJBHome
-{
-   public XAResourceEnlister create() 
-         throws RemoteException, CreateException;
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleRecoverable.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleRecoverable.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleRecoverable.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,142 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.oracle;
-
-import org.jboss.tm.recovery.Recoverable;
-import org.jboss.tm.recovery.RecoveryManagerServiceMBean;
-import org.jboss.system.ServiceMBeanSupport;
-
-import javax.transaction.xa.XAResource;
-import javax.transaction.xa.Xid;
-import javax.transaction.xa.XAException;
-import javax.sql.XAConnection;
-import java.sql.DriverManager;
-import java.sql.SQLException;
-
-import oracle.jdbc.OracleDriver;
-import oracle.jdbc.xa.client.OracleXADataSource;
-
-/**
- * Test for Oracle 9i (maybe 10g too?)
- *
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @version $Revision$
- */
-public class OracleRecoverable extends ServiceMBeanSupport implements Recoverable, OracleRecoverableMBean
-{
-   private String id;
-   private String url;
-   private String username;
-   private String password;
-   private RecoveryManagerServiceMBean manager;
-   private OracleXADataSource oxds1;
-   private XAConnection connection;
-   private XAResource resource;
-
-
-   protected void startService() throws Exception
-   {
-      super.startService();
-      oxds1 = new OracleXADataSource();
-      oxds1.setURL(url);
-      oxds1.setUser(username);
-      oxds1.setPassword(password);
-      manager.registerRecoverable(this);
-   }
-
-   public void setManager(RecoveryManagerServiceMBean manager)
-   {
-      this.manager = manager;
-   }
-
-
-   public String getId()
-   {
-      return id;
-   }
-
-   public void setId(String id)
-   {
-      this.id = id;
-   }
-
-   public String getUrl()
-   {
-      return url;
-   }
-
-   public void setUrl(String url)
-   {
-      this.url = url;
-   }
-
-   public String getUsername()
-   {
-      return username;
-   }
-
-   public void setUsername(String username)
-   {
-      this.username = username;
-   }
-
-   public String getPassword()
-   {
-      return password;
-   }
-
-   public void setPassword(String password)
-   {
-      this.password = password;
-   }
-
-   public XAResource getResource()
-   {
-      try
-      {
-         connection = oxds1.getXAConnection();
-         resource = connection.getXAResource();
-         return resource;
-      }
-      catch (SQLException e)
-      {
-         throw new RuntimeException(e);
-      }
-   }
-
-   public Xid[] scan() throws XAException
-   {
-      return resource.recover(XAResource.TMSTARTRSCAN | XAResource.TMENDRSCAN);
-   }
-
-   public void cleanupResource()
-   {
-      try
-      {
-         connection.close();
-      }
-      catch (SQLException e)
-      {
-         throw new RuntimeException(e);
-      }
-   }
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleRecoverableMBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleRecoverableMBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleRecoverableMBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,52 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.oracle;
-
-import org.jboss.tm.recovery.RecoveryManagerServiceMBean;
-import org.jboss.system.ServiceMBean;
-
-/**
- * Comment
- *
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @version $Revision$
- */
-public interface OracleRecoverableMBean extends ServiceMBean
-{
-   void setManager(RecoveryManagerServiceMBean manager);
-
-   String getId();
-
-   void setId(String id);
-
-   String getUrl();
-
-   void setUrl(String url);
-
-   String getUsername();
-
-   void setUsername(String username);
-
-   String getPassword();
-
-   void setPassword(String password);
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleTest.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleTest.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleTest.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,229 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.oracle;
-
-import org.jboss.system.ServiceMBeanSupport;
-import org.jboss.test.recover.bean.MockLoggerServiceMBean;
-import org.jboss.test.recover.interfaces.MockLogger;
-import org.jboss.tm.recovery.RecoveryTestingException;
-import org.jboss.tm.recovery.RecoveryManagerServiceMBean;
-
-import javax.sql.DataSource;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-import javax.transaction.TransactionManager;
-import javax.transaction.RollbackException;
-import javax.transaction.HeuristicMixedException;
-import javax.transaction.HeuristicRollbackException;
-import javax.transaction.SystemException;
-import javax.transaction.NotSupportedException;
-import java.sql.Connection;
-import java.sql.Statement;
-import java.sql.SQLException;
-import java.sql.ResultSet;
-
-/**
- * Comment
- *
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @version $Revision$
- */
-public class OracleTest extends ServiceMBeanSupport implements OracleTestMBean
-{
-   private RecoveryManagerServiceMBean manager;
-   private MockLogger logger;
-   private DataSource xds1;
-   private DataSource xds2;
-   private DataSource ds1;
-   private DataSource ds2;
-   private TransactionManager tm;
-
-   public void setMock(MockLoggerServiceMBean mock)
-   {
-      this.logger = (MockLogger) mock.getInstance();
-   }
-
-   public void setManager(RecoveryManagerServiceMBean manager)
-   {
-      this.manager = manager;
-   }
-
-   protected void startService() throws Exception
-   {
-      super.startService();
-   }
-
-   public void initTester()
-   throws NamingException
-   {
-      InitialContext ctx = new InitialContext();
-      xds1 = (DataSource) ctx.lookup("java:/OracleXA1");
-      xds2 = (DataSource) ctx.lookup("java:/OracleXA2");
-      ds1 = (DataSource) ctx.lookup("java:/Oracle1");
-      ds2 = (DataSource) ctx.lookup("java:/Oracle2");
-      tm = (TransactionManager) ctx.lookup("java:/TransactionManager");
-   }
-
-   public void createTables()
-   throws NotSupportedException, SystemException, SQLException, RollbackException, HeuristicMixedException, HeuristicRollbackException
-   {
-      tm.begin();
-      Connection conn1 = ds1.getConnection();
-      Connection conn2 = ds2.getConnection();
-      initialize(conn1);
-      initialize(conn2);
-      conn1.close();
-      conn2.close();
-      tm.commit();
-   }
-
-   private void initialize(Connection conn1)
-   throws SQLException
-   {
-      Statement st = conn1.createStatement();
-      try
-      {
-         st.execute("drop table xa_test_table");
-      }
-      catch (SQLException ignore)
-      {
-
-      }
-      try
-      {
-         st.execute("create table xa_test_table(col1 int)");
-      }
-      catch (SQLException ignore)
-      {
-         ignore.printStackTrace();
-      }
-      st.close();
-   }
-
-   public void testCommitRecover() throws Exception
-   {
-      createTables();
-
-      Connection conn1 = null;
-      Connection conn2 = null;
-
-      logger.setFailAfterCommitting(true);
-      logger.setFailAfter(0);
-
-      boolean didntFail = false;
-
-      try
-      {
-         tm.begin();
-         conn1 = xds1.getConnection();
-         conn2 = xds2.getConnection();
-         Statement st1 = conn1.createStatement();
-         Statement st2 = conn2.createStatement();
-         try
-         {
-            st1.executeUpdate("insert into xa_test_table values(1)");
-            st2.executeUpdate("insert into xa_test_table values(1)");
-         }
-         finally
-         {
-            st1.close();
-            st2.close();
-            conn1.close();
-            conn2.close();
-         }
-         try
-         {
-            tm.commit();
-            didntFail = true;
-         }
-         catch (RecoveryTestingException e)
-         {
-         }
-
-         logger.setFailAfterCommitting(false);
-
-         if (didntFail) throw new RuntimeException("Transaction should have failed");
-
-         // a stop/start sequence will put current log file into recoverable mode
-         logger.stop();
-         logger.start();
-         manager.recover();
-
-         tm.suspend(); // old transaction
-         
-         tm.begin();
-         conn1 = xds1.getConnection();
-         conn2 = xds1.getConnection();
-         Statement stmta = conn1.createStatement();
-         Statement stmtb = conn2.createStatement();
-
-         try
-         {
-            ResultSet rset = stmta.executeQuery("select col1 from xa_test_table");
-            int count1 = 0;
-
-            while (rset.next())
-            {
-               System.out.println("Col1 is " + rset.getInt(1));
-               count1++;
-            }
-
-            rset.close();
-            rset = null;
-
-            if (count1 != 1) throw new RuntimeException("No recovery on 1");
-
-
-            ResultSet rset2 = stmta.executeQuery("select col1 from xa_test_table");
-            int count2 = 0;
-
-            while (rset2.next())
-            {
-               System.out.println("Col1 is " + rset2.getInt(1));
-               count2++;
-            }
-
-            rset2.close();
-            rset2 = null;
-
-            if (count2 != 1) throw new RuntimeException("No recovery on 2");
-
-         }
-         finally
-         {
-            stmta.close();
-            stmta = null;
-            stmtb.close();
-            stmtb = null;
-            conn1.close();
-            conn2.close();
-         }
-         tm.commit();
-
-      }
-      finally
-      {
-         logger.setFailAfterCommitting(false);
-      }
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleTestMBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleTestMBean.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/oracle/OracleTestMBean.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,55 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.oracle;
-
-import org.jboss.test.recover.bean.MockLoggerServiceMBean;
-import org.jboss.tm.recovery.RecoveryManagerServiceMBean;
-import org.jboss.system.ServiceMBean;
-
-import javax.naming.NamingException;
-import javax.transaction.NotSupportedException;
-import javax.transaction.SystemException;
-import javax.transaction.RollbackException;
-import javax.transaction.HeuristicMixedException;
-import javax.transaction.HeuristicRollbackException;
-import java.sql.SQLException;
-
-/**
- * Comment
- *
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @version $Revision$
- */
-public interface OracleTestMBean extends ServiceMBean
-{
-   void setMock(MockLoggerServiceMBean mock);
-
-   void setManager(RecoveryManagerServiceMBean manager);
-
-   void initTester()
-   throws NamingException;
-
-   void testCommitRecover() throws Exception;
-
-   void createTables()
-   throws NotSupportedException, SystemException, SQLException, RollbackException, HeuristicMixedException, HeuristicRollbackException;
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,130 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashAfterDistributedTxCommittedIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashAfterDistributedTxCommittedIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-   private MBeanServerConnection server = delegate.getServer(); 
-
-   public CrashAfterDistributedTxCommittedIIOPJBRemTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOPAndJBRem();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash: " + xa1CommitsBefore + ", " 
-               + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      try
-      {
-         server.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailAfterCommitting", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailAfter", 
-                                                    new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOPAndJBRem();
-         fail("Server crash expected.");
-      }
-      catch (Throwable e)
-      {
-         if (e instanceof java.rmi.MarshalException)
-         {
-            log.info("Expected throwable:", e);
-         }
-         else
-         {
-            log.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      log.info("Commits after crash: " + xa1CommitsAfter + ", " 
-            + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashAfterDistributedTxCommittedIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,130 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashAfterDistributedTxCommittedIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashAfterDistributedTxCommittedIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-   private MBeanServerConnection server = delegate.getServer(); 
-
-   public CrashAfterDistributedTxCommittedIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash: " + xa1CommitsBefore + ", " 
-               + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      try
-      {
-         server.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailAfterCommitting", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailAfter", 
-                                                    new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOP();
-         fail("Server crash expected.");
-      }
-      catch (Throwable e)
-      {
-         if (e instanceof java.rmi.MarshalException)
-         {
-            log.info("Expected throwable:", e);
-         }
-         else
-         {
-            log.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      log.info("Commits after crash: " + xa1CommitsAfter + ", " 
-            + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashAfterDistributedTxCommittedIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,130 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashAfterDistributedTxCommittedJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashAfterDistributedTxCommittedJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-   private MBeanServerConnection server = delegate.getServer(); 
-
-   public CrashAfterDistributedTxCommittedJBRemIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRemAndIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash: " + xa1CommitsBefore + ", " 
-               + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      try
-      {
-         server.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailAfterCommitting", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailAfter", 
-                                                    new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRemAndIIOP();
-         fail("Server crash expected.");
-      }
-      catch (Throwable e)
-      {
-         if (e instanceof java.rmi.MarshalException)
-         {
-            log.info("Expected throwable:", e);
-         }
-         else
-         {
-            log.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      log.info("Commits after crash: " + xa1CommitsAfter + ", " 
-            + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashAfterDistributedTxCommittedJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterDistributedTxCommittedTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,130 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashAfterDistributedTxCommittedTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashAfterDistributedTxCommittedTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-   private MBeanServerConnection server = delegate.getServer(); 
-
-   public CrashAfterDistributedTxCommittedTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRem();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash: " + xa1CommitsBefore + ", " 
-               + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      try
-      {
-         server.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailAfterCommitting", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailAfter", 
-                                                    new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRem();
-         fail("Server crash expected.");
-      }
-      catch (Throwable e)
-      {
-         if (e instanceof java.rmi.MarshalException)
-         {
-            log.info("Expected throwable:", e);
-         }
-         else
-         {
-            log.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      log.info("Commits after crash: " + xa1CommitsAfter + ", " 
-            + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashAfterDistributedTxCommittedTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterOneResourceButNotAllHaveCommittedTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterOneResourceButNotAllHaveCommittedTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterOneResourceButNotAllHaveCommittedTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,115 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.StatelessFoo;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashAfterOneResourceButNotAllHaveCommittedTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashAfterOneResourceButNotAllHaveCommittedTestCase
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashAfterOneResourceButNotAllHaveCommittedTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      StatelessFoo foo = 
-         (StatelessFoo) getInitialContext().lookup("StatelessFoo");
-
-      for (int i = 0; i < N; i++)
-         foo.method();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash: " + xa1CommitsBefore + ", " 
-               + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      try
-      {
-         xaRes2.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA2 WAS ABOUT TO COMMIT"));
-         foo.method();
-         fail("Server crash expected.");
-      }
-      catch (Throwable e)
-      {
-         if (e instanceof java.lang.reflect.UndeclaredThrowableException
-               && e.getCause() != null
-               && e.getCause() instanceof java.rmi.MarshalException)
-         {
-            log.info("Expected throwable:", e);
-            xaRes2.clearCommitException();
-         }
-         else
-         {
-            log.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      log.info("Commits after crash: " + xa1CommitsAfter + ", " 
-            + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(N, xa1CommitsBefore);
-      assertEquals(N, xa2CommitsBefore);
-      assertEquals(N, xa3CommitsBefore);
-      assertEquals(N + 1, xa1CommitsAfter);
-      assertEquals(N, xa2CommitsAfter);
-      assertEquals(N, xa3CommitsAfter);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashAfterOneResourceButNotAllHaveCommittedTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterOneResourceButNotAllHavePreparedTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterOneResourceButNotAllHavePreparedTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterOneResourceButNotAllHavePreparedTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,133 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.StatelessFoo;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashAfterOneResourceButNotAllHavePreparedTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashAfterOneResourceButNotAllHavePreparedTestCase
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashAfterOneResourceButNotAllHavePreparedTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-      
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      StatelessFoo foo = 
-         (StatelessFoo) getInitialContext().lookup("StatelessFoo");
-
-      for (int i = 0; i < N; i++)
-         foo.method();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash: " + xa1CommitsBefore + ", " 
-               + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      try
-      {
-         xaRes2.setPrepareException(new RecoveryTestingException(
-                                    "FAILURE WHEN XA2 WAS ABOUT TO PREPARE"));
-         foo.method();
-         fail("Server crash expected.");
-      }
-      catch (Throwable e)
-      {
-         if (e instanceof java.lang.reflect.UndeclaredThrowableException
-               && e.getCause() != null
-               && e.getCause() instanceof java.rmi.MarshalException)
-         {
-            log.info("Expected throwable:", e);
-            xaRes2.clearPrepareException();
-         }
-         else
-         {
-            log.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Prepares = xaRes1.getPreparedCount();
-      int xa2Prepares = xaRes2.getPreparedCount();
-      int xa3Prepares = xaRes3.getPreparedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash: " + xa1CommitsAfter + ", " 
-            + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Prepares after crash: " + xa1Prepares + ", " 
-            + xa2Prepares + ", " + xa3Prepares);
-      log.info("Rollbacks after crash: " + xa1Rollbacks + ", " 
-            + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(N, xa1CommitsBefore);
-      assertEquals(N, xa2CommitsBefore);
-      assertEquals(N, xa3CommitsBefore);
-      assertEquals(N, xa1CommitsAfter);
-      assertEquals(N, xa2CommitsAfter);
-      assertEquals(N, xa3CommitsAfter);
-      assertEquals(N + 1, xa1Prepares);
-      assertEquals(N, xa2Prepares);
-      assertEquals(N, xa3Prepares);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashAfterOneResourceButNotAllHavePreparedTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterTxCommittedTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterTxCommittedTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterTxCommittedTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,124 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.StatelessFoo;
-
-/**
- * A CrashAfterTxCommittedTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashAfterTxCommittedTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-   private MBeanServerConnection server = delegate.getServer(); 
-
-   public CrashAfterTxCommittedTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      StatelessFoo foo = 
-         (StatelessFoo) getInitialContext().lookup("StatelessFoo");
-
-      for (int i = 0; i < N; i++)
-         foo.method();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash: " + xa1CommitsBefore + ", " 
-               + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      try
-      {
-         server.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailAfterCommitting", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailAfter", 
-                                                    new Integer(0)));
-         foo.method();
-         fail("Server crash expected.");
-      }
-      catch (Throwable e)
-      {
-         if (e instanceof java.lang.reflect.UndeclaredThrowableException
-               && e.getCause() != null
-               && e.getCause() instanceof java.rmi.MarshalException)
-         {
-            log.info("Expected throwable:", e);
-         }
-         else
-         {
-            log.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      log.info("Commits after crash: " + xa1CommitsAfter + ", " 
-            + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(N, xa1CommitsBefore);
-      assertEquals(N, xa2CommitsBefore);
-      assertEquals(N, xa3CommitsBefore);
-      assertEquals(N, xa1CommitsAfter);
-      assertEquals(N, xa2CommitsAfter);
-      assertEquals(N, xa3CommitsAfter);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashAfterTxCommittedTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,119 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.transaction.xa.XAException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.StatelessFoo;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase(
-                                                                  String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      StatelessFoo foo = 
-         (StatelessFoo) getInitialContext().lookup("StatelessFoo");
-
-      for (int i = 0; i < N; i++)
-         foo.method();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash: " + xa1CommitsBefore + ", " 
-               + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      try
-      {
-         xaRes2.setCommitErrorCode(XAException.XA_RETRY);
-         xaRes3.setAfterCommitException(new RecoveryTestingException(
-                                          "FAILURE AFTER XA3 WAS COMMITTED"));
-         foo.method();
-         fail("Server crash expected.");
-      }
-      catch (Throwable e)
-      {
-         if (e instanceof java.lang.reflect.UndeclaredThrowableException
-               && e.getCause() != null
-               && e.getCause() instanceof java.rmi.MarshalException)
-         {
-            log.info("Expected throwable:", e);
-            xaRes3.clearAfterCommitException();
-         }
-         else
-         {
-            log.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      log.info("Commits after crash: " + xa1CommitsAfter + ", " 
-            + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(N, xa1CommitsBefore);
-      assertEquals(N, xa2CommitsBefore);
-      assertEquals(N, xa3CommitsBefore);
-      assertEquals(N + 1, xa1CommitsAfter);
-      assertEquals(N, xa2CommitsAfter);
-      assertEquals(N + 1, xa3CommitsAfter);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,120 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.transaction.xa.XAException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.StatelessFoo;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase(
-                                                                  String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      StatelessFoo foo = 
-         (StatelessFoo) getInitialContext().lookup("StatelessFoo");
-
-      for (int i = 0; i < N; i++)
-         foo.method();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash: " + xa1CommitsBefore + ", " 
-               + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      try
-      {
-         xaRes2.setCommitErrorCode(XAException.XA_RETRY);
-         xaRes3.setAfterCommitException(new RecoveryTestingException(
-                                          "FAILURE AFTER XA3 WAS COMMITTED"));
-         foo.method();
-         fail("Server crash expected.");
-      }
-      catch (Throwable e)
-      {
-         if (e instanceof java.lang.reflect.UndeclaredThrowableException
-               && e.getCause() != null
-               && e.getCause() instanceof java.rmi.MarshalException)
-         {
-            log.info("Expected throwable:", e);
-            xaRes2.clearCommitErrorCode();
-            xaRes3.clearAfterCommitException();
-         }
-         else
-         {
-            log.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      log.info("Commits after crash: " + xa1CommitsAfter + ", " 
-            + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(N, xa1CommitsBefore);
-      assertEquals(N, xa2CommitsBefore);
-      assertEquals(N, xa3CommitsBefore);
-      assertEquals(N + 1, xa1CommitsAfter);
-      assertEquals(N, xa2CommitsAfter);
-      assertEquals(N + 1, xa3CommitsAfter);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,139 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashBeforeDistributedTxCommittedIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashBeforeDistributedTxCommittedIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-   private MBeanServerConnection server = delegate.getServer(); 
-
-   public CrashBeforeDistributedTxCommittedIIOPJBRemTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOPAndJBRem();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash: " + xa1CommitsBefore + ", " 
-               + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      try
-      {
-         server.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailBeforeCommitting", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailBefore", 
-                                                    new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOPAndJBRem();
-         fail("Server crash expected.");
-      }
-      catch (Throwable e)
-      {
-         if (e instanceof java.rmi.MarshalException)
-         {
-            log.info("Expected throwable:", e);
-         }
-         else
-         {
-            log.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash: " + xa1CommitsAfter + ", " 
-            + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash: " + xa1Rollbacks + ", " 
-            + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashBeforeDistributedTxCommittedIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,139 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashBeforeDistributedTxCommittedIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashBeforeDistributedTxCommittedIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-   private MBeanServerConnection server = delegate.getServer(); 
-
-   public CrashBeforeDistributedTxCommittedIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash: " + xa1CommitsBefore + ", " 
-               + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      try
-      {
-         server.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailBeforeCommitting", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailBefore", 
-                                                    new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOP();
-         fail("Server crash expected.");
-      }
-      catch (Throwable e)
-      {
-         if (e instanceof java.rmi.MarshalException)
-         {
-            log.info("Expected throwable:", e);
-         }
-         else
-         {
-            log.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash: " + xa1CommitsAfter + ", " 
-            + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash: " + xa1Rollbacks + ", " 
-            + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashBeforeDistributedTxCommittedIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,139 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashBeforeDistributedTxCommittedJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashBeforeDistributedTxCommittedJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-   private MBeanServerConnection server = delegate.getServer(); 
-
-   public CrashBeforeDistributedTxCommittedJBRemIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRemAndIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash: " + xa1CommitsBefore + ", " 
-               + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      try
-      {
-         server.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailBeforeCommitting", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailBefore", 
-                                                    new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRemAndIIOP();
-         fail("Server crash expected.");
-      }
-      catch (Throwable e)
-      {
-         if (e instanceof java.rmi.MarshalException)
-         {
-            log.info("Expected throwable:", e);
-         }
-         else
-         {
-            log.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash: " + xa1CommitsAfter + ", " 
-            + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash: " + xa1Rollbacks + ", " 
-            + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashBeforeDistributedTxCommittedJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeDistributedTxCommittedTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,139 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashBeforeDistributedTxCommittedTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashBeforeDistributedTxCommittedTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-   private MBeanServerConnection server = delegate.getServer(); 
-
-   public CrashBeforeDistributedTxCommittedTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRem();
-
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash: " + xa1CommitsBefore + ", " 
-               + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      try
-      {
-         server.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailBeforeCommitting", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailBefore", 
-                                                    new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRem();
-         fail("Server crash expected.");
-      }
-      catch (Throwable e)
-      {
-         if (e instanceof java.rmi.MarshalException)
-         {
-            log.info("Expected throwable:", e);
-         }
-         else
-         {
-            log.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash: " + xa1CommitsAfter + ", " 
-            + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash: " + xa1Rollbacks + ", " 
-            + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashBeforeDistributedTxCommittedTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeTxCommittedTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeTxCommittedTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashBeforeTxCommittedTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,133 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.StatelessFoo;
-
-/**
- * A CrashBeforeTxCommittedTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashBeforeTxCommittedTestCase
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-   private MBeanServerConnection server = delegate.getServer(); 
-
-   public CrashBeforeTxCommittedTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-      
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      StatelessFoo foo = 
-         (StatelessFoo) getInitialContext().lookup("StatelessFoo");
-
-      for (int i = 0; i < N; i++)
-         foo.method();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash: " + xa1CommitsBefore + ", " 
-               + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      try
-      {
-         server.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailBeforeCommitting", 
-                                                    Boolean.TRUE));
-         server.setAttribute(logger, new Attribute("FailBefore", 
-                                                    new Integer(0)));
-         foo.method();
-         fail("Server crash expected.");
-      }
-      catch (Throwable e)
-      {
-         if (e instanceof java.lang.reflect.UndeclaredThrowableException
-               && e.getCause() != null
-               && e.getCause() instanceof java.rmi.MarshalException)
-         {
-            log.info("Expected throwable:", e);
-         }
-         else
-         {
-            log.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash: " + xa1CommitsAfter + ", " 
-            + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash: " + xa1Rollbacks + ", " 
-            + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(N, xa1CommitsBefore);
-      assertEquals(N, xa2CommitsBefore);
-      assertEquals(N, xa3CommitsBefore);
-      assertEquals(N, xa1CommitsAfter);
-      assertEquals(N, xa2CommitsAfter);
-      assertEquals(N, xa3CommitsAfter);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashBeforeTxCommittedTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,138 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverIIOPAndJBRem();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      try
-      {
-         // XAResource usage is as follows:
-         // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-         // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-         // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-         //
-         // This will make remote resource 1 crash after prepare,
-         // when it issues commit to xaRes2:
-         xaRes2.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA2 WAS ABOUT TO COMMIT"));
-
-         // Run the transaction. The commit call to xaRes2 will not be  
-         // performed now, due to the resource crash. It will be performed
-         // by the recovery procedure of appserver that contains resource 1.
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverIIOPAndJBRem();
-
-         // Clear crash-causing exception so that commit will succeed at 
-         // recovery time.
-         xaRes2.clearCommitException();
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(N, xa1CommitsBefore);
-      assertEquals(N, xa2CommitsBefore);
-      assertEquals(N, xa3CommitsBefore);
-      assertEquals(N + 1, xa1CommitsAfter);
-      assertEquals(N, xa2CommitsAfter);
-      assertEquals(N + 1, xa3CommitsAfter);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,138 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfFirstRemoteResourceAfterPrepareIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceAfterPrepareIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfFirstRemoteResourceAfterPrepareIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      try
-      {
-         // XAResource usage is as follows:
-         // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-         // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-         // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-         //
-         // This will make remote resource 1 crash after prepare,
-         // when it issues commit to xaRes2:
-         xaRes2.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA2 WAS ABOUT TO COMMIT"));
-
-         // Run the transaction. The commit call to xaRes2 will not be  
-         // performed now, due to the resource crash. It will be performed
-         // by the recovery procedure of appserver that contains resource 1.
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverIIOP();
-
-         // Clear crash-causing exception so that commit will succeed at 
-         // recovery time.
-         xaRes2.clearCommitException();
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(N, xa1CommitsBefore);
-      assertEquals(N, xa2CommitsBefore);
-      assertEquals(N, xa3CommitsBefore);
-      assertEquals(N + 1, xa1CommitsAfter);
-      assertEquals(N, xa2CommitsAfter);
-      assertEquals(N + 1, xa3CommitsAfter);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceAfterPrepareIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,138 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverJBRemAndIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      try
-      {
-         // XAResource usage is as follows:
-         // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-         // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-         // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-         //
-         // This will make remote resource 1 crash after prepare,
-         // when it issues commit to xaRes2:
-         xaRes2.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA2 WAS ABOUT TO COMMIT"));
-
-         // Run the transaction. The commit call to xaRes2 will not be  
-         // performed now, due to the resource crash. It will be performed
-         // by the recovery procedure of appserver that contains resource 1.
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverJBRemAndIIOP();
-
-         // Clear crash-causing exception so that commit will succeed at 
-         // recovery time.
-         xaRes2.clearCommitException();
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(N, xa1CommitsBefore);
-      assertEquals(N, xa2CommitsBefore);
-      assertEquals(N, xa3CommitsBefore);
-      assertEquals(N + 1, xa1CommitsAfter);
-      assertEquals(N, xa2CommitsAfter);
-      assertEquals(N + 1, xa3CommitsAfter);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceAfterPrepareTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,138 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfFirstRemoteResourceAfterPrepareTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceAfterPrepareTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfFirstRemoteResourceAfterPrepareTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverJBRem();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      try
-      {
-         // XAResource usage is as follows:
-         // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-         // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-         // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-         //
-         // This will make remote resource 1 crash after prepare,
-         // when it issues commit to xaRes2:
-         xaRes2.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA2 WAS ABOUT TO COMMIT"));
-
-         // Run the transaction. The commit call to xaRes2 will not be  
-         // performed now, due to the resource crash. It will be performed
-         // by the recovery procedure of appserver that contains resource 1.
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverJBRem();
-
-         // Clear crash-causing exception so that commit will succeed at 
-         // recovery time.
-         xaRes2.clearCommitException();
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(N, xa1CommitsBefore);
-      assertEquals(N, xa2CommitsBefore);
-      assertEquals(N, xa3CommitsBefore);
-      assertEquals(N + 1, xa1CommitsAfter);
-      assertEquals(N, xa2CommitsAfter);
-      assertEquals(N + 1, xa3CommitsAfter);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceAfterPrepareTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,144 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOPAndJBRem();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection firstResource = getResource1Server();
-      try
-      {
-         // make first remote resource crash after saving its prepare decision
-         // (and before answering the prepare call from the root coordinator)
-         firstResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailAfterPreparing", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailAfter", 
-                                                          new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOPAndJBRem();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (0, 0, 0) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,144 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection firstResource = getResource1Server();
-      try
-      {
-         // make first remote resource crash after saving its prepare decision
-         // (and before answering the prepare call from the root coordinator)
-         firstResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailAfterPreparing", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailAfter", 
-                                                          new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOP();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (0, 0, 0) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,144 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRemAndIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection firstResource = getResource1Server();
-      try
-      {
-         // make first remote resource crash after saving its prepare decision
-         // (and before answering the prepare call from the root coordinator)
-         firstResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailAfterPreparing", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailAfter", 
-                                                          new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRemAndIIOP();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (0, 0, 0) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,144 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRem();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection firstResource = getResource1Server();
-      try
-      {
-         // make first remote resource crash after saving its prepare decision
-         // (and before answering the prepare call from the root coordinator)
-         firstResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailAfterPreparing", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailAfter", 
-                                                          new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRem();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (0, 0, 0) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,146 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOPAndJBRem();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection firstResource = getResource1Server();
-      try
-      {
-         // Make first remote resource crash before saving its prepare decision.
-         // The first remote resource will crash before answering the prepare
-         // call from the root coordinator, which will rollback the transaction
-         // before calling prepare on the second remote resource.
-         firstResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailBeforePreparing", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailBefore", 
-                                                          new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOPAndJBRem();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (0, 0, 0) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,146 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection firstResource = getResource1Server();
-      try
-      {
-         // Make first remote resource crash before saving its prepare decision.
-         // The first remote resource will crash before answering the prepare
-         // call from the root coordinator, which will rollback the transaction
-         // before calling prepare on the second remote resource.
-         firstResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailBeforePreparing", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailBefore", 
-                                                          new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOP();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (0, 0, 0) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,146 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRemAndIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection firstResource = getResource1Server();
-      try
-      {
-         // Make first remote resource crash before saving its prepare decision.
-         // The first remote resource will crash before answering the prepare
-         // call from the root coordinator, which will rollback the transaction
-         // before calling prepare on the second remote resource.
-         firstResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailBeforePreparing", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailBefore", 
-                                                          new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRemAndIIOP();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (0, 0, 0) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceBeforeItPreparesTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,146 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfFirstRemoteResourceBeforeItPreparesTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceBeforeItPreparesTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfFirstRemoteResourceBeforeItPreparesTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRem();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection firstResource = getResource1Server();
-      try
-      {
-         // Make first remote resource crash before saving its prepare decision.
-         // The first remote resource will crash before answering the prepare
-         // call from the root coordinator, which will rollback the transaction
-         // before calling prepare on the second remote resource.
-         firstResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailBeforePreparing", 
-                                                          Boolean.TRUE));
-         firstResource.setAttribute(logger, new Attribute("FailBefore", 
-                                                          new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRem();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (0, 0, 0) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceBeforeItPreparesTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,140 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   public CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void test() throws Exception
-   {
-      getLog().info("*** starting " + getUnqualifiedClassName() + " ***");
-
-      Context ctx  = getInitialContext();
-
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      
-      getLog().debug("Obtain FrontEnd home interface");
-      obj = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome frontEndHome =
-         (FrontEndHome) PortableRemoteObject.narrow(obj, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = frontEndHome.create("testCommittedTx");
-
-      getLog().debug("Obtain XAResourceEnlisterCaller home interface");
-      obj = ctx.lookup("dtmrectest/XAResourceEnlisterCallerEJB");
-      XAResourceEnlisterCallerHome xaResEnlisterCallerHome = 
-         (XAResourceEnlisterCallerHome) PortableRemoteObject.narrow(
-                                    obj, XAResourceEnlisterCallerHome.class);
-
-      getLog().debug("Create XAResourceEnlisterCaller bean");
-      XAResourceEnlisterCaller xaResEnlisterCaller = 
-         xaResEnlisterCallerHome.create();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalancesOverIIOPAndJBRem(101, 102);
-      userTx.commit();
-   
-      int[] balances;
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalancesOverIIOPAndJBRem();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances");
-      // XAResource usage is as follows:
-      // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-      // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-      // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-      //
-      // This will make remote resource 1 crash after prepare,
-      // when it issues commit to xaRes2:
-      xaRes2.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA2 WAS ABOUT TO COMMIT"));
-      // Run the transaction. The commit calls to the XA resources in the
-      // appserver that contains the remote resource 1 will not happen now,
-      // due to crash of that appserver. They will be performed by that
-      // appserver's recovery procedure.
-      try
-      {
-         userTx.begin();
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverIIOPAndJBRem();
-         frontEnd.addToBalancesOverIIOPAndJBRem(100);
-         userTx.commit();
-      }
-      finally
-      {
-         // Clear crash-causing exception so that the commit on xaRes2 succeeds
-         // at recovery time.
-         xaRes2.clearCommitException();
-      }
-   }
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,140 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   public CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void test() throws Exception
-   {
-      getLog().info("*** starting " + getUnqualifiedClassName() + " ***");
-
-      Context ctx  = getInitialContext();
-
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      
-      getLog().debug("Obtain FrontEnd home interface");
-      obj = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome frontEndHome =
-         (FrontEndHome) PortableRemoteObject.narrow(obj, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = frontEndHome.create("testCommittedTx");
-
-      getLog().debug("Obtain XAResourceEnlisterCaller home interface");
-      obj = ctx.lookup("dtmrectest/XAResourceEnlisterCallerEJB");
-      XAResourceEnlisterCallerHome xaResEnlisterCallerHome = 
-         (XAResourceEnlisterCallerHome) PortableRemoteObject.narrow(
-                                    obj, XAResourceEnlisterCallerHome.class);
-
-      getLog().debug("Create XAResourceEnlisterCaller bean");
-      XAResourceEnlisterCaller xaResEnlisterCaller = 
-         xaResEnlisterCallerHome.create();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalancesOverIIOP(101, 102);
-      userTx.commit();
-   
-      int[] balances;
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalancesOverIIOP();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances");
-      // XAResource usage is as follows:
-      // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-      // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-      // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-      //
-      // This will make remote resource 1 crash after prepare,
-      // when it issues commit to xaRes2:
-      xaRes2.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA2 WAS ABOUT TO COMMIT"));
-      // Run the transaction. The commit calls to the XA resources in the
-      // appserver that contains the remote resource 1 will not happen now,
-      // due to crash of that appserver. They will be performed by that
-      // appserver's recovery procedure.
-      try
-      {
-         userTx.begin();
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverIIOP();
-         frontEnd.addToBalancesOverIIOP(100);
-         userTx.commit();
-      }
-      finally
-      {
-         // Clear crash-causing exception so that the commit on xaRes2 succeeds
-         // at recovery time.
-         xaRes2.clearCommitException();
-      }
-   }
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,140 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase
-      extends JBossCrashRecoveryTestCase
-{
-   public CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void test() throws Exception
-   {
-      getLog().info("*** starting " + getUnqualifiedClassName() + " ***");
-
-      Context ctx  = getInitialContext();
-
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      
-      getLog().debug("Obtain FrontEnd home interface");
-      obj = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome frontEndHome =
-         (FrontEndHome) PortableRemoteObject.narrow(obj, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = frontEndHome.create("testCommittedTx");
-
-      getLog().debug("Obtain XAResourceEnlisterCaller home interface");
-      obj = ctx.lookup("dtmrectest/XAResourceEnlisterCallerEJB");
-      XAResourceEnlisterCallerHome xaResEnlisterCallerHome = 
-         (XAResourceEnlisterCallerHome) PortableRemoteObject.narrow(
-                                    obj, XAResourceEnlisterCallerHome.class);
-
-      getLog().debug("Create XAResourceEnlisterCaller bean");
-      XAResourceEnlisterCaller xaResEnlisterCaller = 
-         xaResEnlisterCallerHome.create();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalancesOverJBRemAndIIOP(101, 102);
-      userTx.commit();
-   
-      int[] balances;
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalancesOverJBRemAndIIOP();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances");
-      // XAResource usage is as follows:
-      // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-      // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-      // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-      //
-      // This will make remote resource 1 crash after prepare,
-      // when it issues commit to xaRes2:
-      xaRes2.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA2 WAS ABOUT TO COMMIT"));
-      // Run the transaction. The commit calls to the XA resources in the
-      // appserver that contains the remote resource 1 will not happen now,
-      // due to crash of that appserver. They will be performed by that
-      // appserver's recovery procedure.
-      try
-      {
-         userTx.begin();
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverJBRemAndIIOP();
-         frontEnd.addToBalancesOverJBRemAndIIOP(100);
-         userTx.commit();
-      }
-      finally
-      {
-         // Clear crash-causing exception so that the commit on xaRes2 succeeds
-         // at recovery time.
-         xaRes2.clearCommitException();
-      }
-   }
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,140 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase
-      extends JBossCrashRecoveryTestCase
-{
-   public CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void test() throws Exception
-   {
-      getLog().info("*** starting " + getUnqualifiedClassName() + " ***");
-
-      Context ctx  = getInitialContext();
-
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      
-      getLog().debug("Obtain FrontEnd home interface");
-      obj = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome frontEndHome =
-         (FrontEndHome) PortableRemoteObject.narrow(obj, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = frontEndHome.create("testCommittedTx");
-
-      getLog().debug("Obtain XAResourceEnlisterCaller home interface");
-      obj = ctx.lookup("dtmrectest/XAResourceEnlisterCallerEJB");
-      XAResourceEnlisterCallerHome xaResEnlisterCallerHome = 
-         (XAResourceEnlisterCallerHome) PortableRemoteObject.narrow(
-                                    obj, XAResourceEnlisterCallerHome.class);
-
-      getLog().debug("Create XAResourceEnlisterCaller bean");
-      XAResourceEnlisterCaller xaResEnlisterCaller = 
-         xaResEnlisterCallerHome.create();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalancesOverJBRem(101, 102);
-      userTx.commit();
-   
-      int[] balances;
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalancesOverJBRem();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances");
-      // XAResource usage is as follows:
-      // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-      // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-      // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-      //
-      // This will make remote resource 1 crash after prepare,
-      // when it issues commit to xaRes2:
-      xaRes2.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA2 WAS ABOUT TO COMMIT"));
-      // Run the transaction. The commit calls to the XA resources in the
-      // appserver that contains the remote resource 1 will not happen now,
-      // due to crash of that appserver. They will be performed by that
-      // appserver's recovery procedure.
-      try
-      {
-         userTx.begin();
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverJBRem();
-         frontEnd.addToBalancesOverJBRem(100);
-         userTx.commit();
-      }
-      finally
-      {
-         // Clear crash-causing exception so that the commit on xaRes2 succeeds
-         // at recovery time.
-         xaRes2.clearCommitException();
-      }
-   }
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,138 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverIIOPAndJBRem();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      try
-      {
-         // XAResource usage is as follows:
-         // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-         // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-         // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-         //
-         // This will make remote resource 2 crash after prepare,
-         // when it issues commit to xaRes3:
-         xaRes3.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA3 WAS ABOUT TO COMMIT"));
-
-         // Run the transaction. The commit call to xaRes2 will not be  
-         // performed now, due to the resource crash. It will be performed
-         // by the recovery procedure of appserver that contains resource 1.
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverIIOPAndJBRem();
-
-         // Clear crash-causing exception so that commit will succeed at 
-         // recovery time.
-         xaRes3.clearCommitException();
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(N, xa1CommitsBefore);
-      assertEquals(N, xa2CommitsBefore);
-      assertEquals(N, xa3CommitsBefore);
-      assertEquals(N + 1, xa1CommitsAfter);
-      assertEquals(N + 1, xa2CommitsAfter);
-      assertEquals(N, xa3CommitsAfter);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,138 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfSecondRemoteResourceAfterPrepareIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceAfterPrepareIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfSecondRemoteResourceAfterPrepareIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      try
-      {
-         // XAResource usage is as follows:
-         // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-         // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-         // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-         //
-         // This will make remote resource 2 crash after prepare,
-         // when it issues commit to xaRes3:
-         xaRes3.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA3 WAS ABOUT TO COMMIT"));
-
-         // Run the transaction. The commit call to xaRes2 will not be  
-         // performed now, due to the resource crash. It will be performed
-         // by the recovery procedure of appserver that contains resource 1.
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverIIOP();
-
-         // Clear crash-causing exception so that commit will succeed at 
-         // recovery time.
-         xaRes3.clearCommitException();
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(N, xa1CommitsBefore);
-      assertEquals(N, xa2CommitsBefore);
-      assertEquals(N, xa3CommitsBefore);
-      assertEquals(N + 1, xa1CommitsAfter);
-      assertEquals(N + 1, xa2CommitsAfter);
-      assertEquals(N, xa3CommitsAfter);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceAfterPrepareIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,138 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverJBRemAndIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      try
-      {
-         // XAResource usage is as follows:
-         // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-         // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-         // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-         //
-         // This will make remote resource 2 crash after prepare,
-         // when it issues commit to xaRes3:
-         xaRes3.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA3 WAS ABOUT TO COMMIT"));
-
-         // Run the transaction. The commit call to xaRes2 will not be  
-         // performed now, due to the resource crash. It will be performed
-         // by the recovery procedure of appserver that contains resource 1.
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverJBRemAndIIOP();
-
-         // Clear crash-causing exception so that commit will succeed at 
-         // recovery time.
-         xaRes3.clearCommitException();
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(N, xa1CommitsBefore);
-      assertEquals(N, xa2CommitsBefore);
-      assertEquals(N, xa3CommitsBefore);
-      assertEquals(N + 1, xa1CommitsAfter);
-      assertEquals(N + 1, xa2CommitsAfter);
-      assertEquals(N, xa3CommitsAfter);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceAfterPrepareTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,138 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.rmi.PortableRemoteObject;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfSecondRemoteResourceAfterPrepareTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceAfterPrepareTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfSecondRemoteResourceAfterPrepareTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverJBRem();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      try
-      {
-         // XAResource usage is as follows:
-         // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-         // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-         // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-         //
-         // This will make remote resource 2 crash after prepare,
-         // when it issues commit to xaRes3:
-         xaRes3.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA3 WAS ABOUT TO COMMIT"));
-
-         // Run the transaction. The commit call to xaRes2 will not be  
-         // performed now, due to the resource crash. It will be performed
-         // by the recovery procedure of appserver that contains resource 1.
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverJBRem();
-
-         // Clear crash-causing exception so that commit will succeed at 
-         // recovery time.
-         xaRes3.clearCommitException();
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(N, xa1CommitsBefore);
-      assertEquals(N, xa2CommitsBefore);
-      assertEquals(N, xa3CommitsBefore);
-      assertEquals(N + 1, xa1CommitsAfter);
-      assertEquals(N + 1, xa2CommitsAfter);
-      assertEquals(N, xa3CommitsAfter);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceAfterPrepareTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,144 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOPAndJBRem();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection secondResource = getResource2Server();
-      try
-      {
-         // make second remote resource crash after saving its prepare decision
-         // (and before answering the prepare call from the root coordinator)
-         secondResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailAfterPreparing", 
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailAfter", 
-                                                           new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOPAndJBRem();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (0, 0, 0) /* XA rollbacks driven by the second resource */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,144 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection secondResource = getResource2Server();
-      try
-      {
-         // make second remote resource crash after saving its prepare decision
-         // (and before answering the prepare call from the root coordinator)
-         secondResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailAfterPreparing", 
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailAfter", 
-                                                           new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOP();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (0, 0, 0) /* XA rollbacks driven by the second resource */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,144 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRemAndIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection secondResource = getResource2Server();
-      try
-      {
-         // make second remote resource crash after saving its prepare decision
-         // (and before answering the prepare call from the root coordinator)
-         secondResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailAfterPreparing", 
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailAfter", 
-                                                           new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRemAndIIOP();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (0, 0, 0) /* XA rollbacks driven by the second resource */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,144 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRem();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection secondResource = getResource2Server();
-      try
-      {
-         // make second remote resource crash after saving its prepare decision
-         // (and before answering the prepare call from the root coordinator)
-         secondResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailAfterPreparing", 
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailAfter", 
-                                                           new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRem();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (0, 0, 0) /* XA rollbacks driven by the second resource */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,147 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOPAndJBRem();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection secondResource = getResource2Server();
-      try
-      {
-         // Make second remote resource crash before saving its prepare 
-         // decision. The second remote resource will crash before answering 
-         // the prepare call from the root coordinator, which will rollback 
-         // the transaction before calling prepare on the second remote 
-         // resource.
-         secondResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailBeforePreparing",
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailBefore", 
-                                                           new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOPAndJBRem();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resouce */
-      //           + (0, 0, 0) /* XA rollbacks driven by the second resource */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,147 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection secondResource = getResource2Server();
-      try
-      {
-         // Make second remote resource crash before saving its prepare 
-         // decision. The second remote resource will crash before answering 
-         // the prepare call from the root coordinator, which will rollback 
-         // the transaction before calling prepare on the second remote 
-         // resource.
-         secondResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailBeforePreparing",
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailBefore", 
-                                                           new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverIIOP();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resouce */
-      //           + (0, 0, 0) /* XA rollbacks driven by the second resource */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,147 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRemAndIIOP();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection secondResource = getResource2Server();
-      try
-      {
-         // Make second remote resource crash before saving its prepare 
-         // decision. The second remote resource will crash before answering 
-         // the prepare call from the root coordinator, which will rollback 
-         // the transaction before calling prepare on the second remote 
-         // resource.
-         secondResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailBeforePreparing",
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailBefore", 
-                                                           new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRemAndIIOP();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resouce */
-      //           + (0, 0, 0) /* XA rollbacks driven by the second resource */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceBeforeItPreparesTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,147 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.management.Attribute;
-import javax.management.MBeanServerConnection;
-import javax.management.ObjectName;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.TransactionRolledbackException;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-
-/**
- * A CrashOfSecondRemoteResourceBeforeItPreparesTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceBeforeItPreparesTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public CrashOfSecondRemoteResourceBeforeItPreparesTestCase(String name)
-      throws Exception
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      XAResourceEnlisterCallerHome home;
-      
-      obj = getInitialContext().lookup(
-                                    "dtmrectest/XAResourceEnlisterCallerEJB");
-      home = (XAResourceEnlisterCallerHome) 
-         PortableRemoteObject.narrow(obj, XAResourceEnlisterCallerHome.class);
-      XAResourceEnlisterCaller xaResEnlisterCaller = home.create();
-
-      for (int i = 0; i < N; i++)
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRem();
-         
-      int xa1CommitsBefore = xaRes1.getCommittedCount();
-      int xa2CommitsBefore = xaRes2.getCommittedCount();
-      int xa3CommitsBefore = xaRes3.getCommittedCount();
-
-      log.info("Commits before crash of remote resource: " + xa1CommitsBefore + 
-               ", " + xa2CommitsBefore + ", " + xa3CommitsBefore);
-
-      ObjectName logger = new ObjectName("jboss:service=RecoveryLogger");
-      MBeanServerConnection secondResource = getResource2Server();
-      try
-      {
-         // Make second remote resource crash before saving its prepare 
-         // decision. The second remote resource will crash before answering 
-         // the prepare call from the root coordinator, which will rollback 
-         // the transaction before calling prepare on the second remote 
-         // resource.
-         secondResource.setAttribute(logger, new Attribute("CrashOnFailure", 
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailBeforePreparing",
-                                                           Boolean.TRUE));
-         secondResource.setAttribute(logger, new Attribute("FailBefore", 
-                                                           new Integer(0)));
-         xaResEnlisterCaller.callXAResourceEnlistersOverJBRem();
-         fail("TransactionRolledbackException expected.");
-      }
-      catch (TransactionRolledbackException e)
-      {
-         log.info("Expected exception: ", e);
-      }
-      catch (Throwable e)
-      {
-         log.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1CommitsAfter = xaRes1.getCommittedCount();
-      int xa2CommitsAfter = xaRes2.getCommittedCount();
-      int xa3CommitsAfter = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash of remote resource: " + xa1CommitsAfter + 
-               ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-      log.info("Rollbacks after crash of remote resource: " + xa1CommitsAfter + 
-            ", " + xa2CommitsAfter + ", " + xa3CommitsAfter);
-
-      assertEquals(3 * N, xa1CommitsBefore);
-      assertEquals(3 * N, xa2CommitsBefore);
-      assertEquals(2 * N, xa3CommitsBefore);
-      assertEquals(3 * N, xa1CommitsAfter);
-      assertEquals(3 * N, xa2CommitsAfter);
-      assertEquals(2 * N, xa3CommitsAfter);
-      // expected XA rollbacks are (2, 2, 1) rather than (3, 3, 2), because 
-      // the crashed remote resource did not drive XA rollbacks:
-      // (2, 2, 1) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resouce */
-      //           + (0, 0, 0) /* XA rollbacks driven by the second resource */
-      assertEquals(2, xa1Rollbacks);
-      assertEquals(2, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceBeforeItPreparesTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,142 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   public CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void test() throws Exception
-   {
-      getLog().info("*** starting " + getUnqualifiedClassName() + " ***");
-
-      Context ctx  = getInitialContext();
-
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      
-      getLog().debug("Obtain FrontEnd home interface");
-      obj = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome frontEndHome =
-         (FrontEndHome) PortableRemoteObject.narrow(obj, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = frontEndHome.create("testCommittedTx");
-
-      getLog().debug("Obtain XAResourceEnlisterCaller home interface");
-      obj = ctx.lookup("dtmrectest/XAResourceEnlisterCallerEJB");
-      XAResourceEnlisterCallerHome xaResEnlisterCallerHome = 
-         (XAResourceEnlisterCallerHome) PortableRemoteObject.narrow(
-                                    obj, XAResourceEnlisterCallerHome.class);
-
-      getLog().debug("Create XAResourceEnlisterCaller bean");
-      XAResourceEnlisterCaller xaResEnlisterCaller = 
-         xaResEnlisterCallerHome.create();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalancesOverIIOPAndJBRem(101, 102);
-      userTx.commit();
-   
-      int[] balances;
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalancesOverIIOPAndJBRem();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances");
-      // XAResource usage is as follows:
-      // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-      // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-      // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-      //
-      // This will make remote resource 2 crash after prepare,
-      // when it issues commit to xaRes3:
-      xaRes3.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA2 WAS ABOUT TO COMMIT"));
-
-      // Run the transaction. The commit calls to the XA resources in the
-      // appserver that contains the remote resource 2 will not happen now,
-      // due to crash of that appserver. They will be performed by that
-      // appserver's recovery procedure.
-      try
-      {
-         userTx.begin();
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverIIOPAndJBRem();
-         frontEnd.addToBalancesOverIIOPAndJBRem(100);
-         userTx.commit();
-      }
-      finally
-      {
-         
-         // Clear crash-causing exception so that the commit on xaRes3 succeeds
-         // at recovery time.
-         xaRes3.clearCommitException();
-      }
-   }
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,142 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   public CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void test() throws Exception
-   {
-      getLog().info("*** starting " + getUnqualifiedClassName() + " ***");
-
-      Context ctx  = getInitialContext();
-
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      
-      getLog().debug("Obtain FrontEnd home interface");
-      obj = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome frontEndHome =
-         (FrontEndHome) PortableRemoteObject.narrow(obj, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = frontEndHome.create("testCommittedTx");
-
-      getLog().debug("Obtain XAResourceEnlisterCaller home interface");
-      obj = ctx.lookup("dtmrectest/XAResourceEnlisterCallerEJB");
-      XAResourceEnlisterCallerHome xaResEnlisterCallerHome = 
-         (XAResourceEnlisterCallerHome) PortableRemoteObject.narrow(
-                                    obj, XAResourceEnlisterCallerHome.class);
-
-      getLog().debug("Create XAResourceEnlisterCaller bean");
-      XAResourceEnlisterCaller xaResEnlisterCaller = 
-         xaResEnlisterCallerHome.create();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalancesOverIIOP(101, 102);
-      userTx.commit();
-   
-      int[] balances;
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalancesOverIIOP();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances");
-      // XAResource usage is as follows:
-      // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-      // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-      // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-      //
-      // This will make remote resource 2 crash after prepare,
-      // when it issues commit to xaRes3:
-      xaRes3.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA2 WAS ABOUT TO COMMIT"));
-
-      // Run the transaction. The commit calls to the XA resources in the
-      // appserver that contains the remote resource 2 will not happen now,
-      // due to crash of that appserver. They will be performed by that
-      // appserver's recovery procedure.
-      try
-      {
-         userTx.begin();
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverIIOP();
-         frontEnd.addToBalancesOverIIOP(100);
-         userTx.commit();
-      }
-      finally
-      {
-         
-         // Clear crash-causing exception so that the commit on xaRes3 succeeds
-         // at recovery time.
-         xaRes3.clearCommitException();
-      }
-   }
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,142 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase
-      extends JBossCrashRecoveryTestCase
-{
-   public CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void test() throws Exception
-   {
-      getLog().info("*** starting " + getUnqualifiedClassName() + " ***");
-
-      Context ctx  = getInitialContext();
-
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      
-      getLog().debug("Obtain FrontEnd home interface");
-      obj = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome frontEndHome =
-         (FrontEndHome) PortableRemoteObject.narrow(obj, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = frontEndHome.create("testCommittedTx");
-
-      getLog().debug("Obtain XAResourceEnlisterCaller home interface");
-      obj = ctx.lookup("dtmrectest/XAResourceEnlisterCallerEJB");
-      XAResourceEnlisterCallerHome xaResEnlisterCallerHome = 
-         (XAResourceEnlisterCallerHome) PortableRemoteObject.narrow(
-                                    obj, XAResourceEnlisterCallerHome.class);
-
-      getLog().debug("Create XAResourceEnlisterCaller bean");
-      XAResourceEnlisterCaller xaResEnlisterCaller = 
-         xaResEnlisterCallerHome.create();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalancesOverJBRemAndIIOP(101, 102);
-      userTx.commit();
-   
-      int[] balances;
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalancesOverJBRemAndIIOP();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances");
-      // XAResource usage is as follows:
-      // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-      // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-      // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-      //
-      // This will make remote resource 2 crash after prepare,
-      // when it issues commit to xaRes3:
-      xaRes3.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA2 WAS ABOUT TO COMMIT"));
-
-      // Run the transaction. The commit calls to the XA resources in the
-      // appserver that contains the remote resource 2 will not happen now,
-      // due to crash of that appserver. They will be performed by that
-      // appserver's recovery procedure.
-      try
-      {
-         userTx.begin();
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverJBRemAndIIOP();
-         frontEnd.addToBalancesOverJBRemAndIIOP(100);
-         userTx.commit();
-      }
-      finally
-      {
-         
-         // Clear crash-causing exception so that the commit on xaRes3 succeeds
-         // at recovery time.
-         xaRes3.clearCommitException();
-      }
-   }
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,142 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCaller;
-import org.jboss.test.recover.interfaces.XAResourceEnlisterCallerHome;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-/**
- * A CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase
-      extends JBossCrashRecoveryTestCase
-{
-   public CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase(String name)
-      throws java.io.IOException
-   {
-      super(name);
-   }
-
-   // Public --------------------------------------------------------
-
-   public void test() throws Exception
-   {
-      getLog().info("*** starting " + getUnqualifiedClassName() + " ***");
-
-      Context ctx  = getInitialContext();
-
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      xaRes1.clear();
-      xaRes2.clear();
-      xaRes3.clear();
-
-      Object obj;
-      
-      getLog().debug("Obtain FrontEnd home interface");
-      obj = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome frontEndHome =
-         (FrontEndHome) PortableRemoteObject.narrow(obj, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = frontEndHome.create("testCommittedTx");
-
-      getLog().debug("Obtain XAResourceEnlisterCaller home interface");
-      obj = ctx.lookup("dtmrectest/XAResourceEnlisterCallerEJB");
-      XAResourceEnlisterCallerHome xaResEnlisterCallerHome = 
-         (XAResourceEnlisterCallerHome) PortableRemoteObject.narrow(
-                                    obj, XAResourceEnlisterCallerHome.class);
-
-      getLog().debug("Create XAResourceEnlisterCaller bean");
-      XAResourceEnlisterCaller xaResEnlisterCaller = 
-         xaResEnlisterCallerHome.create();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Set balances");
-      userTx.begin();
-      frontEnd.setBalancesOverJBRem(101, 102);
-      userTx.commit();
-   
-      int[] balances;
-
-      getLog().debug("Get balances");
-      userTx.begin();
-      balances = frontEnd.getBalancesOverJBRem();
-      userTx.commit();
-   
-      assertTrue("first balance == 101", balances[0] == 101);
-      assertTrue("second balance == 102", balances[1] == 102);
-   
-      getLog().debug("Update balances");
-      // XAResource usage is as follows:
-      // - xaResEnlisterCaller (the root coordinator) enlists xaRes1
-      // - the first XAResourceEnlister (remote resource 1) enlists xaRes2
-      // - the second XAResourceEnlister (remote resource 2) enlists xaRes3
-      //
-      // This will make remote resource 2 crash after prepare,
-      // when it issues commit to xaRes3:
-      xaRes3.setCommitException(new RecoveryTestingException(
-                                       "FAILURE WHEN XA2 WAS ABOUT TO COMMIT"));
-
-      // Run the transaction. The commit calls to the XA resources in the
-      // appserver that contains the remote resource 2 will not happen now,
-      // due to crash of that appserver. They will be performed by that
-      // appserver's recovery procedure.
-      try
-      {
-         userTx.begin();
-         xaResEnlisterCaller.enlistOneXAResourcePerAppServerOverJBRem();
-         frontEnd.addToBalancesOverJBRem(100);
-         userTx.commit();
-      }
-      finally
-      {
-         
-         // Clear crash-causing exception so that the commit on xaRes3 succeeds
-         // at recovery time.
-         xaRes3.clearCommitException();
-      }
-   }
-
-   public static Test suite() throws Exception
-   {
-      return suite(CrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/JBossCrashRecoveryIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/JBossCrashRecoveryIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/JBossCrashRecoveryIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,138 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import java.net.URL;
-import java.util.Properties;
-
-import javax.management.MBeanServerConnection;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.jboss.test.JBossIIOPTestCase;
-import org.jboss.test.recover.bean.DummyRecoverableProxyService.RecoverableWrapper;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A JBossCrashRecoveryIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class JBossCrashRecoveryIIOPTestCase 
-      extends JBossIIOPTestCase
-{
-   protected int N = 10;
-   protected Properties resource1ServerJndiProps;
-   protected Properties resource2ServerJndiProps;
-   protected MBeanServerConnection resource1Server; 
-   protected MBeanServerConnection resource2Server; 
-
-   protected JBossCrashRecoveryIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   protected String getUnqualifiedClassName()
-   {
-      String s = getClass().getName();
-      int i = s.lastIndexOf('.') + 1;
-      return s.substring(i);
-   }
-   
-   protected DummyXAResource getXAResource(String recoverableName)
-      throws Exception
-   {
-      RecoverableWrapper recoverable = 
-         (RecoverableWrapper) getInitialJnpContext().lookup(recoverableName);
-      DummyXAResource xaRes = 
-         (DummyXAResource) recoverable.getUnwrappedResource();
-      return xaRes;
-   }
-
-   protected Context getResource1ServerInitialContext() throws Exception
-   {
-      if( resource1ServerJndiProps == null )
-      {
-         URL url  = ClassLoader.getSystemResource("jndi.properties");
-         resource1ServerJndiProps = new java.util.Properties();
-         resource1ServerJndiProps.load(url.openStream());
-         String jndiHost = System.getProperty("jbosstest.resource1.server.host", 
-                                              "localhost");
-         String jndiUrl = "jnp://"+jndiHost+":1099";
-         resource1ServerJndiProps.setProperty("java.naming.provider.url", 
-                                              jndiUrl);
-      }
-      return new InitialContext(resource1ServerJndiProps);
-   }
-   
-   protected MBeanServerConnection getResource1Server() throws Exception
-   {
-      if (resource1Server == null)
-      {
-         String adaptorName = System.getProperty("jbosstest.server.name", 
-                                                 "jmx/invoker/RMIAdaptor");
-         Context resCtx = getResource1ServerInitialContext();
-         resource1Server = (MBeanServerConnection)resCtx.lookup(adaptorName);
-      }
-      return resource1Server;
-   }
-
-   protected Context getResource2ServerInitialContext() throws Exception
-   {
-      if( resource2ServerJndiProps == null )
-      {
-         URL url  = ClassLoader.getSystemResource("jndi.properties");
-         resource2ServerJndiProps = new java.util.Properties();
-         resource2ServerJndiProps.load(url.openStream());
-         String jndiHost = System.getProperty("jbosstest.resource2.server.host", 
-                                              "localhost");
-         String jndiUrl = "jnp://"+jndiHost+":1099";
-         resource2ServerJndiProps.setProperty("java.naming.provider.url", 
-                                              jndiUrl);
-      }
-      return new InitialContext(resource2ServerJndiProps);
-   }
-   
-   protected MBeanServerConnection getResource2Server() throws Exception
-   {
-      if (resource2Server == null)
-      {
-         String adaptorName = System.getProperty("jbosstest.server.name", 
-                                                 "jmx/invoker/RMIAdaptor");
-         Context resCtx = getResource2ServerInitialContext();
-         resource2Server = (MBeanServerConnection)resCtx.lookup(adaptorName);
-      }
-      return resource2Server;
-   }
-
-   public static Test suite(Class testCaseClass)
-   {
-      TestSuite suite = new TestSuite();
-      suite.addTest(new TestSuite(testCaseClass));
-      return suite;
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/JBossCrashRecoveryTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/JBossCrashRecoveryTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/JBossCrashRecoveryTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,138 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import java.net.URL;
-import java.util.Properties;
-
-import javax.management.MBeanServerConnection;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.jboss.test.JBossTestCase;
-import org.jboss.test.recover.bean.DummyRecoverableProxyService.RecoverableWrapper;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A JBossCrashRecoveryTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public abstract class JBossCrashRecoveryTestCase 
-      extends JBossTestCase
-{
-   protected int N = 10;
-   protected Properties resource1ServerJndiProps;
-   protected Properties resource2ServerJndiProps;
-   protected MBeanServerConnection resource1Server; 
-   protected MBeanServerConnection resource2Server; 
-   
-   protected JBossCrashRecoveryTestCase(String name)
-   {
-      super(name);
-   }
-   
-   protected String getUnqualifiedClassName()
-   {
-      String s = getClass().getName();
-      int i = s.lastIndexOf('.') + 1;
-      return s.substring(i);
-   }
-   
-   protected DummyXAResource getXAResource(String recoverableName)
-      throws Exception
-   {
-      RecoverableWrapper recoverable = 
-         (RecoverableWrapper) getInitialContext().lookup(recoverableName);
-      DummyXAResource xaRes = 
-         (DummyXAResource) recoverable.getUnwrappedResource();
-      return xaRes;
-   }
-
-   protected Context getResource1ServerInitialContext() throws Exception
-   {
-      if( resource1ServerJndiProps == null )
-      {
-         URL url  = ClassLoader.getSystemResource("jndi.properties");
-         resource1ServerJndiProps = new java.util.Properties();
-         resource1ServerJndiProps.load(url.openStream());
-         String jndiHost = System.getProperty("jbosstest.resource1.server.host", 
-                                              "localhost");
-         String jndiUrl = "jnp://"+jndiHost+":1099";
-         resource1ServerJndiProps.setProperty("java.naming.provider.url", 
-                                              jndiUrl);
-      }
-      return new InitialContext(resource1ServerJndiProps);
-   }
-   
-   protected MBeanServerConnection getResource1Server() throws Exception
-   {
-      if (resource1Server == null)
-      {
-         String adaptorName = System.getProperty("jbosstest.server.name", 
-                                                 "jmx/invoker/RMIAdaptor");
-         Context resCtx = getResource1ServerInitialContext();
-         resource1Server = (MBeanServerConnection)resCtx.lookup(adaptorName);
-      }
-      return resource1Server;
-   }
-
-   protected Context getResource2ServerInitialContext() throws Exception
-   {
-      if( resource2ServerJndiProps == null )
-      {
-         URL url  = ClassLoader.getSystemResource("jndi.properties");
-         resource2ServerJndiProps = new java.util.Properties();
-         resource2ServerJndiProps.load(url.openStream());
-         String jndiHost = System.getProperty("jbosstest.resource2.server.host", 
-                                              "localhost");
-         String jndiUrl = "jnp://"+jndiHost+":1099";
-         resource2ServerJndiProps.setProperty("java.naming.provider.url", 
-                                              jndiUrl);
-      }
-      return new InitialContext(resource2ServerJndiProps);
-   }
-   
-   protected MBeanServerConnection getResource2Server() throws Exception
-   {
-      if (resource2Server == null)
-      {
-         String adaptorName = System.getProperty("jbosstest.server.name", 
-                                                 "jmx/invoker/RMIAdaptor");
-         Context resCtx = getResource2ServerInitialContext();
-         resource2Server = (MBeanServerConnection)resCtx.lookup(adaptorName);
-      }
-      return resource2Server;
-   }
-
-   public static Test suite(Class testCaseClass)
-   {
-      TestSuite suite = new TestSuite();
-      suite.addTest(new TestSuite(testCaseClass));
-      return suite;
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoverabilityTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoverabilityTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoverabilityTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,2580 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyRecoverable;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-import org.jboss.test.recover.interfaces.DummyXAResourceImpl;
-import org.jboss.test.recover.interfaces.MockLogger;
-import org.jboss.tm.TxManager;
-import org.jboss.tm.TransactionImpl;
-import org.jboss.tm.XidFactoryBase;
-import org.jboss.tm.recovery.CorruptedLogRecordException;
-import org.jboss.tm.recovery.LogRecord;
-import org.jboss.tm.recovery.RecoveryLogReader;
-import org.jboss.tm.recovery.RecoveryManager;
-import org.jboss.tm.recovery.RecoveryTestingException;
-
-import EDU.oswego.cs.dl.util.concurrent.Semaphore;
-
-import javax.transaction.SystemException;
-import javax.transaction.Transaction;
-import javax.transaction.xa.XAException;
-
-import java.util.ArrayList;
-import java.io.File;
-import java.io.IOException;
-import java.io.RandomAccessFile;
-
-/**
- * Stand-alone (in-VM) recoverability test.
- *
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @author <a href="mailto:reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoverabilityTestCase extends TestCase
-{
-   private Logger traceLog = Logger.getLogger(this.getClass());
-   private String dirName = "recovery-test";
-   private String[] directoryList = {dirName};
-   private int logFileSize = 1000;
-   private String heuristicDir = "heuristic-dir";
-   private XidFactoryBase xidFactory = TransactionImpl.defaultXidFactory();
-   private final int N = 5;
-
-   public RecoverabilityTestCase(String s)
-   {
-      super(s);
-      
-      xidFactory.setBaseGlobalId("localhost:1099/");
-      xidFactory.setBranchQualifier("localhost:1099");
-   }
-   
-   public void testFailureAfterTxCommitted() throws Exception
-   {
-      traceLog.info(">>> testFailureAfterTxCommitted()");
-      
-      MockLogger logger = setupTxLogger();
-      TxManager tm = TxManager.getInstance();
-      
-      DummyXAResourceImpl xa1 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa2 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa3 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-      DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-      DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-      ArrayList recoverables = new ArrayList();
-      recoverables.add(rec1);
-      recoverables.add(rec2);
-      recoverables.add(rec3);
-
-      logger.setFailAfterCommitting(true);
-      logger.setFailAfter(N);
-      
-      try
-      {
-         for (int i = 0; ;i++)
-         {
-            tm.begin();
-            Transaction tx = tm.getTransaction();
-            tx.enlistResource(xa1);
-            tx.enlistResource(xa2);
-            tx.enlistResource(xa3);
-            tm.commit();
-         }
-      }
-      catch (RecoveryTestingException e)
-      {
-         traceLog.info("Expected exception: " + e);
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      tm.suspend(); // to disassociate thread with any txs.
-
-      logger.stop();
-
-      int xa1Count = xa1.getCommittedCount();
-      int xa2Count = xa2.getCommittedCount();
-      int xa3Count = xa3.getCommittedCount();
-
-      try
-      {
-         logger = switchTxLogger();
-         RecoveryManager manager = new RecoveryManager(xidFactory, tm, logger);
-         manager.recover(recoverables);
-         logger.stop();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1NextCount = xa1.getCommittedCount();
-      int xa2NextCount = xa2.getCommittedCount();
-      int xa3NextCount = xa3.getCommittedCount();
-
-      assertEquals(N, xa1Count);
-      assertEquals(N, xa2Count);
-      assertEquals(N, xa3Count);
-
-      assertEquals(N + 1, xa1NextCount);
-      assertEquals(N + 1, xa2NextCount);
-      assertEquals(N + 1, xa3NextCount);
-
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      cleanLogDir(dirName);
-
-      traceLog.info("DONE TEST");
-   }
-
-   public void testFailureBeforeTxCommitted() throws Exception
-   {
-      traceLog.info(">>> testFailureBeforeTxCommitted()");
-
-      MockLogger logger = setupTxLogger();
-      TxManager tm = TxManager.getInstance();
-      
-      DummyXAResourceImpl xa1 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa2 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa3 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-      DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-      DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-      ArrayList recoverables = new ArrayList();
-      recoverables.add(rec1);
-      recoverables.add(rec2);
-      recoverables.add(rec3);
-
-      logger.setFailBeforeCommitting(true);
-      logger.setFailBefore(N);
-   
-      try
-      {
-         for (int i = 0; ;i++)
-         {
-            tm.begin();
-            Transaction tx = tm.getTransaction();
-            tx.enlistResource(xa1);
-            tx.enlistResource(xa2);
-            tx.enlistResource(xa3);
-            tm.commit();
-         }
-      }
-      catch (RecoveryTestingException e)
-      {
-         traceLog.info("Expected exception: " + e);
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-      tm.suspend(); // to disassociate thread with any txs.
-
-      logger.stop();
-
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      int xa1Count = xa1.getCommittedCount();
-      int xa2Count = xa2.getCommittedCount();
-      int xa3Count = xa3.getCommittedCount();
-
-      int xa1RollbackCount = xa1.getRollbackCount();
-      int xa2RollbackCount = xa2.getRollbackCount();
-      int xa3RollbackCount = xa3.getRollbackCount();
-
-      try
-      {
-         logger = switchTxLogger();
-         RecoveryManager manager = new RecoveryManager(xidFactory, tm, logger);
-         manager.recover(recoverables);
-         logger.stop();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1NextCount = xa1.getCommittedCount();
-      int xa2NextCount = xa2.getCommittedCount();
-      int xa3NextCount = xa3.getCommittedCount();
-
-      int xa1NextRollbackCount = xa1.getRollbackCount();
-      int xa2NextRollbackCount = xa2.getRollbackCount();
-      int xa3NextRollbackCount = xa3.getRollbackCount();
-
-      assertEquals(N, xa1Count);
-      assertEquals(N, xa2Count);
-      assertEquals(N, xa3Count);
-      assertEquals(N, xa1NextCount);
-      assertEquals(N, xa2NextCount);
-      assertEquals(N, xa3NextCount);
-
-      assertEquals(0, xa1RollbackCount);
-      assertEquals(0, xa2RollbackCount);
-      assertEquals(0, xa3RollbackCount);
-      assertEquals(1, xa1NextRollbackCount);
-      assertEquals(1, xa2NextRollbackCount);
-      assertEquals(1, xa3NextRollbackCount);
-
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      cleanLogDir(dirName);
-
-      traceLog.info("DONE TEST");
-   }
-
-   public void testCommitWithHeuristics() throws Exception
-   {
-      traceLog.info(">>> testCommitWithHeuristics()");
-      
-      MockLogger logger = setupTxLogger();
-      TxManager tm = TxManager.getInstance();
-      
-      DummyXAResourceImpl xa1 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa2 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa3 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-      DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-      DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-      ArrayList recoverables = new ArrayList();
-      recoverables.add(rec1);
-      recoverables.add(rec2);
-      recoverables.add(rec3);
-
-      traceLog.info("testing heuristic rollback in the first XA resource");
-      try
-      {
-         tm.begin();
-         Transaction tx = tm.getTransaction();
-         tx.enlistResource(xa1);
-         tx.enlistResource(xa2);
-         tx.enlistResource(xa3);
-         xa1.setCommitErrorCode(XAException.XA_HEURRB);
-         tm.commit();
-         fail("HeuristicMixedException expected.");
-      }
-      catch (javax.transaction.HeuristicMixedException e)
-      {
-         traceLog.info("Expected exception: " + e);
-         xa1.clearCommitErrorCode();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      traceLog.info("testing heuristic rollback in the second XA resource");
-      try
-      {
-         tm.begin();
-         Transaction tx = tm.getTransaction();
-         tx.enlistResource(xa1);
-         tx.enlistResource(xa2);
-         tx.enlistResource(xa3);
-         xa2.setCommitErrorCode(XAException.XA_HEURRB);
-         tm.commit();
-         fail("HeuristicMixedException expected.");
-      }
-      catch (javax.transaction.HeuristicMixedException e)
-      {
-         traceLog.info("Expected exception: " + e);
-         xa2.clearCommitErrorCode();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      traceLog.info("testing heuristic rollback in the third XA resource");
-      try
-      {
-         tm.begin();
-         Transaction tx = tm.getTransaction();
-         tx.enlistResource(xa1);
-         tx.enlistResource(xa2);
-         tx.enlistResource(xa3);
-         xa3.setCommitErrorCode(XAException.XA_HEURRB);
-         tm.commit();
-         fail("HeuristicMixedException expected.");
-      }
-      catch (javax.transaction.HeuristicMixedException e)
-      {
-         traceLog.info("Expected exception: " + e);
-         xa3.clearCommitErrorCode();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-      
-      traceLog.info("testing heuristic rollback in all three XA resources");
-      try
-      {
-         tm.begin();
-         Transaction tx = tm.getTransaction();
-         tx.enlistResource(xa1);
-         tx.enlistResource(xa2);
-         tx.enlistResource(xa3);
-         xa1.setCommitErrorCode(XAException.XA_HEURRB);
-         xa2.setCommitErrorCode(XAException.XA_HEURRB);
-         xa3.setCommitErrorCode(XAException.XA_HEURRB);
-         tm.commit();
-         fail("HeuristicRollbackException expected.");
-      }
-      catch (javax.transaction.HeuristicRollbackException e)
-      {
-         traceLog.info("Expected exception: " + e);
-         xa1.clearCommitErrorCode();
-         xa2.clearCommitErrorCode();
-         xa3.clearCommitErrorCode();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1Count = xa1.getCommittedCount();
-      int xa2Count = xa2.getCommittedCount();
-      int xa3Count = xa3.getCommittedCount();
-      int xa1ForgetCount = xa1.getForgetCount();
-      int xa2ForgetCount = xa2.getForgetCount();
-      int xa3ForgetCount = xa3.getForgetCount();
-
-      assertEquals(2, xa1Count);
-      assertEquals(2, xa2Count);
-      assertEquals(2, xa3Count);
-      assertEquals(2, xa1ForgetCount);
-      assertEquals(2, xa2ForgetCount);
-      assertEquals(2, xa3ForgetCount);
-      
-      logger.stop();
-      
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      cleanLogDir(dirName);
-
-      traceLog.info("DONE TEST");
-   }
-   
-   public void testFailureAfterCommitWithHeuristics() throws Exception
-   {
-      traceLog.info(">>> testFailureAfterCommitWithHeuristics");
-      
-      MockLogger logger = setupTxLogger();
-      TxManager tm = TxManager.getInstance();
-
-      DummyXAResourceImpl xa1 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa2 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa3 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-      DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-      DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-      ArrayList recoverables = new ArrayList();
-      recoverables.add(rec1);
-      recoverables.add(rec2);
-      recoverables.add(rec3);
-
-      logger.setFailAfterSavingHeuristicStatus(true);
-
-      try
-      {
-         tm.begin();
-         Transaction tx = tm.getTransaction();
-         tx.enlistResource(xa1);
-         tx.enlistResource(xa2);
-         tx.enlistResource(xa3);
-         xa2.setCommitErrorCode(XAException.XA_HEURRB);
-         tm.commit();
-         fail("RecoveryTestingException expected.");
-      }
-      catch (RecoveryTestingException e)
-      {
-         traceLog.info("Expected exception: " + e);
-         //e.printStackTrace();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-      tm.suspend(); // to disassociate thread with any txs.
-
-      logger.stop();
-
-      int xa1Count = xa1.getCommittedCount();
-      int xa2Count = xa2.getCommittedCount();
-      int xa3Count = xa3.getCommittedCount();
-      int xa1ForgetCount = xa1.getForgetCount();
-      int xa2ForgetCount = xa2.getForgetCount();
-      int xa3ForgetCount = xa3.getForgetCount();
-
-      assertEquals(1, xa1Count);
-      assertEquals(0, xa2Count);
-      assertEquals(1, xa3Count);
-      assertEquals(0, xa1ForgetCount);
-      assertEquals(0, xa2ForgetCount);
-      assertEquals(0, xa3ForgetCount);
-      
-      try
-      {
-         logger = switchTxLogger();
-         RecoveryManager manager = new RecoveryManager(xidFactory, tm, logger);
-         manager.recover(recoverables);
-         logger.stop();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1NextCount = xa1.getCommittedCount();
-      int xa2NextCount = xa2.getCommittedCount();
-      int xa3NextCount = xa3.getCommittedCount();
-      int xa1NextForgetCount = xa1.getForgetCount();
-      int xa2NextForgetCount = xa2.getForgetCount();
-      int xa3NextForgetCount = xa3.getForgetCount();
-
-      assertEquals(1, xa1NextCount);
-      assertEquals(0, xa2NextCount);
-      assertEquals(1, xa3NextCount);
-      assertEquals(0, xa1NextForgetCount);
-      assertEquals(1, xa2NextForgetCount);
-      assertEquals(0, xa3NextForgetCount);
-      
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      cleanLogDir(dirName);
-
-      traceLog.info("DONE TEST");
-   }
-   
-   public void testXARetriesInCommit() throws Exception
-   {
-      traceLog.info(">>> testXARetriesInCommit()");
-
-      traceLog.info("testing commit with XA retries but no TM failure");
-      
-      MockLogger logger = setupTxLogger();
-      TxManager tm = TxManager.getInstance();
-      
-      DummyXAResourceImpl xa1 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa2 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa3 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-      DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-      DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-      ArrayList recoverables = new ArrayList();
-      recoverables.add(rec1);
-      recoverables.add(rec2);
-      recoverables.add(rec3);
-
-      try
-      {
-         tm.setXARetryTimeout(1); // one second
-         tm.begin();
-         Transaction tx = tm.getTransaction();
-         tx.enlistResource(xa1);
-         tx.enlistResource(xa2);
-         tx.enlistResource(xa3);
-         xa2.setCommitErrorCode(XAException.XA_RETRY);
-         traceLog.info("Expected XAException.XA_RETRY" +
-                       " when committing resources...");
-         tm.commit();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-      
-      int xa1Count = xa1.getCommittedCount();
-      int xa2Count = xa2.getCommittedCount();
-      int xa3Count = xa3.getCommittedCount();
-
-      assertEquals(1, xa1Count);
-      assertEquals(0, xa2Count);
-      assertEquals(1, xa3Count);
-
-      traceLog.info("Expected XAException.XA_RETRY" +
-                    " when retrying commit on resource...");
-      Thread.sleep(1200); // 1.2 seconds, to let one attempt to commit xa2 fail
-      
-      xa2.clearCommitErrorCode(); // next attempt to commit xa2 will succeed
-
-      traceLog.info("XAException.XA_RETRY *NOT* expected...");
-      Thread.sleep(1200); // 1.2 seconds, to let the next attempt happen
-      
-      xa1Count = xa1.getCommittedCount();
-      xa2Count = xa2.getCommittedCount();
-      xa3Count = xa3.getCommittedCount();
-
-      assertEquals(1, xa1Count);
-      assertEquals(1, xa2Count);
-      assertEquals(1, xa3Count);
-      
-      logger.stop();
-      
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      cleanLogDir(dirName);
-
-      traceLog.info("DONE TEST");
-   }
-   
-   public void testFailureAfterTxCommittedWithSuccessfulXARetryAtRecoveryTime() 
-      throws Exception
-   {
-      traceLog.info(">>> testFailureAfterTxCommittedWithSuccessfulXARetryAtRecoveryTime()");
-      
-      MockLogger logger = setupTxLogger();
-      TxManager tm = TxManager.getInstance();
-      
-      DummyXAResourceImpl xa1 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa2 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa3 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-      DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-      DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-      ArrayList recoverables = new ArrayList();
-      recoverables.add(rec1);
-      recoverables.add(rec2);
-      recoverables.add(rec3);
-
-      try
-      {
-         tm.setXARetryTimeout(1); // one second
-         tm.begin();
-         Transaction tx = tm.getTransaction();
-         tx.enlistResource(xa1);
-         tx.enlistResource(xa2);
-         tx.enlistResource(xa3);
-         xa2.setCommitErrorCode(XAException.XA_RETRY);
-         traceLog.info("Expected XAException.XA_RETRY" +
-                       " when committing resources...");
-         tm.commit();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-      
-      int xa1Count = xa1.getCommittedCount();
-      int xa2Count = xa2.getCommittedCount();
-      int xa3Count = xa3.getCommittedCount();
-
-      assertEquals(1, xa1Count);
-      assertEquals(0, xa2Count);
-      assertEquals(1, xa3Count);
-      
-      tm.suspend(); // to disassociate thread with any txs.
-
-      logger.stop();
-
-      try
-      {
-         logger = switchTxLogger();
-         xa2.clearCommitErrorCode(); // next attempt to commit xa2 will succeed
-         RecoveryManager manager = new RecoveryManager(xidFactory, tm, logger);
-         traceLog.info("XAException.XA_RETRY *NOT* expected during recovery...");
-         manager.recover(recoverables);
-         logger.stop();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1NextCount = xa1.getCommittedCount();
-      int xa2NextCount = xa2.getCommittedCount();
-      int xa3NextCount = xa3.getCommittedCount();
-
-      assertEquals(1, xa1NextCount);
-      assertEquals(1, xa2NextCount);
-      assertEquals(1, xa3NextCount);
-      
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      cleanLogDir(dirName);
-
-      traceLog.info("DONE TEST");
-   }
-   
-   public void testFailureAfterCommitWithFailedXARetryAtRecoveryTime() 
-      throws Exception
-   {
-      traceLog.info(">>> testFailureAfterCommitWithFailedXARetryAtRecoveryTime()");
-
-      MockLogger logger = setupTxLogger();
-      TxManager tm = TxManager.getInstance();
-      
-      DummyXAResourceImpl xa1 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa2 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa3 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-      DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-      DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-      ArrayList recoverables = new ArrayList();
-      recoverables.add(rec1);
-      recoverables.add(rec2);
-      recoverables.add(rec3);
-
-      try
-      {
-         tm.setXARetryTimeout(1); // one second
-         tm.begin();
-         Transaction tx = tm.getTransaction();
-         tx.enlistResource(xa1);
-         tx.enlistResource(xa2);
-         tx.enlistResource(xa3);
-         xa2.setCommitErrorCode(XAException.XA_RETRY);
-         traceLog.info("Expected XAException.XA_RETRY" +
-                       " when committing resources...");
-         tm.commit();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-      
-      int xa1Count = xa1.getCommittedCount();
-      int xa2Count = xa2.getCommittedCount();
-      int xa3Count = xa3.getCommittedCount();
-
-      assertEquals(1, xa1Count);
-      assertEquals(0, xa2Count);
-      assertEquals(1, xa3Count);
-      
-      tm.suspend(); // to disassociate thread with any txs.
-
-      logger.stop();
-
-      try
-      {
-         logger = switchTxLogger();
-         RecoveryManager manager = new RecoveryManager(xidFactory, tm, logger);
-         traceLog.info("Expected XAException.XA_RETRY during recovery...");
-         manager.recover(recoverables);
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      traceLog.info("Expected XAException.XA_RETRY" +
-                    " when retrying commit on resource...");
-      Thread.sleep(1200);
-
-      xa1Count = xa1.getCommittedCount();
-      xa2Count = xa2.getCommittedCount();
-      xa3Count = xa3.getCommittedCount();
-
-      assertEquals(1, xa1Count);
-      assertEquals(0, xa2Count);
-      assertEquals(1, xa3Count);
-
-      xa2.clearCommitErrorCode(); // next attempt to commit xa2 will succeed
-      traceLog.info("XAException.XA_RETRY *NOT* expected anymore...");
-      Thread.sleep(1200);
-
-      int xa1NextCount = xa1.getCommittedCount();
-      int xa2NextCount = xa2.getCommittedCount();
-      int xa3NextCount = xa3.getCommittedCount();
-
-      assertEquals(1, xa1NextCount);
-      assertEquals(1, xa2NextCount);
-      assertEquals(1, xa3NextCount);
-
-      logger.stop();
-      
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      cleanLogDir(dirName);
-
-      traceLog.info("DONE TEST");
-   }
-
-   // The test below assumes that the XAResources are prepared in the 
-   // same order that they were enlisted. This is true for our current 
-   // TransactionImpl, but will change if/when we move on to an implementation 
-   // that prepares XAResources in parallel.
-   public void testFailureAfterOneResourceButNotAllHavePrepared()
-      throws Exception
-   {
-      traceLog.info(">>> testFailureAfterOneResourceButNotAllHavePrepared()");
-      
-      MockLogger logger = setupTxLogger();
-      TxManager tm = TxManager.getInstance();
-      
-      DummyXAResourceImpl xa1 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa2 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa3 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-      DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-      DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-      ArrayList recoverables = new ArrayList();
-      recoverables.add(rec1);
-      recoverables.add(rec2);
-      recoverables.add(rec3);
-
-      try
-      {
-         tm.begin();
-         Transaction tx = tm.getTransaction();
-         tx.enlistResource(xa1);
-         tx.enlistResource(xa2);
-         tx.enlistResource(xa3);
-         xa2.setPrepareException(new RecoveryTestingException(
-                                 "FAILURE WHEN XA2 WAS ABOUT TO PREPARE"));
-         traceLog.info("Expected RecoveryTestingException...");
-         tm.commit();
-         fail("RecoveryTestingException expected.");
-      }
-      catch (RecoveryTestingException e)
-      {
-         traceLog.info("Expected exception: " + e);
-         xa2.clearPrepareException();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-      
-      int xa1Count = xa1.getPreparedCount();
-      int xa2Count = xa2.getPreparedCount();
-      int xa3Count = xa3.getPreparedCount();
-
-      assertEquals(1, xa1Count);
-      assertEquals(0, xa2Count);
-      assertEquals(0, xa3Count);
-      
-      tm.suspend(); // to disassociate thread with any txs.
-
-      logger.stop();
-
-      try
-      {
-         logger = switchTxLogger();
-         RecoveryManager manager = new RecoveryManager(xidFactory, tm, logger);
-         manager.recover(recoverables);
-         logger.stop();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1NextCount = xa1.getPreparedCount();
-      int xa2NextCount = xa2.getPreparedCount();
-      int xa3NextCount = xa3.getPreparedCount();
-
-      assertEquals(1, xa1NextCount);
-      assertEquals(0, xa2NextCount);
-      assertEquals(0, xa3NextCount);
-      
-      int xa1RollbackCount = xa1.getRollbackCount();
-      int xa2RollbackCount = xa2.getRollbackCount();
-      int xa3RollbackCount = xa3.getRollbackCount();
-
-      assertEquals(1, xa1RollbackCount);
-      assertEquals(0, xa2RollbackCount);
-      assertEquals(0, xa3RollbackCount);
-      
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      cleanLogDir(dirName);
-
-      traceLog.info("DONE TEST");
-   }
-
-   // The test below assumes that the XAResources are committed in the 
-   // same order that they were enlisted. This is true for our current 
-   // TransactionImpl, but will change if/when we move on to an implementation 
-   // that commits XAResources in parallel.
-   public void testFailureAfterOneResourceButNotAllHaveCommitted()
-      throws Exception
-   {
-      traceLog.info(">>> testFailureAfterOneResourceButNotAllHaveCommitted()");
-      
-      MockLogger logger = setupTxLogger();
-      TxManager tm = TxManager.getInstance();
-      
-      DummyXAResourceImpl xa1 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa2 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa3 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-      DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-      DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-      ArrayList recoverables = new ArrayList();
-      recoverables.add(rec1);
-      recoverables.add(rec2);
-      recoverables.add(rec3);
-
-      try
-      {
-         tm.begin();
-         Transaction tx = tm.getTransaction();
-         tx.enlistResource(xa1);
-         tx.enlistResource(xa2);
-         tx.enlistResource(xa3);
-         xa2.setCommitException(new RecoveryTestingException(
-                                 "FAILURE WHEN XA2 WAS ABOUT TO COMMIT"));
-         traceLog.info("Expected RecoveryTestingException...");
-         tm.commit();
-         fail("RecoveryTestingException expected.");
-      }
-      catch (RecoveryTestingException e)
-      {
-         traceLog.info("Expected exception: " + e);
-         xa2.clearCommitException();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-      
-      int xa1Count = xa1.getCommittedCount();
-      int xa2Count = xa2.getCommittedCount();
-      int xa3Count = xa3.getCommittedCount();
-
-      assertEquals(1, xa1Count);
-      assertEquals(0, xa2Count);
-      assertEquals(0, xa3Count);
-      
-      tm.suspend(); // to disassociate thread with any txs.
-
-      logger.stop();
-
-      try
-      {
-         logger = switchTxLogger();
-         RecoveryManager manager = new RecoveryManager(xidFactory, tm, logger);
-         manager.recover(recoverables);
-         logger.stop();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1NextCount = xa1.getCommittedCount();
-      int xa2NextCount = xa2.getCommittedCount();
-      int xa3NextCount = xa3.getCommittedCount();
-
-      assertEquals(1, xa1NextCount);
-      assertEquals(1, xa2NextCount);
-      assertEquals(1, xa3NextCount);
-      
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      cleanLogDir(dirName);
-
-      traceLog.info("DONE TEST");
-   }
-
-   // The test below assumes that the XAResources are prepared/committed in the 
-   // same order that they were enlisted. This is true for our current 
-   // TransactionImpl, but will change if/when we move on to an implementation 
-   // that prepares/commits XAResources in parallel.
-   public void testMultipleFailuresInTheSameLogFile()
-      throws Exception
-   {
-      traceLog.info(">>> testMultipleFailuresInTheSameLogFile");
-      
-      MockLogger logger = setupTxLogger();
-      TxManager tm = TxManager.getInstance();
-      ArrayList recoverables = new ArrayList();
-      
-      traceLog.info("--- will force a failure after tx committed");
-      
-      DummyXAResourceImpl xa1 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa2 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa3 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-      DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-      DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-      recoverables.add(rec1);
-      recoverables.add(rec2);
-      recoverables.add(rec3);
-
-      logger.setFailAfterCommitting(true);
-      logger.setFailAfter(N);
-      
-      try
-      {
-         for (int i = 0; ;i++)
-         {
-            tm.begin();
-            Transaction tx = tm.getTransaction();
-            tx.enlistResource(xa1);
-            tx.enlistResource(xa2);
-            tx.enlistResource(xa3);
-            tm.commit();
-         }
-      }
-      catch (RecoveryTestingException e)
-      {
-         traceLog.info("Expected exception: " + e);
-         logger.setFailAfterCommitting(false);
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1Count = xa1.getCommittedCount();
-      int xa2Count = xa2.getCommittedCount();
-      int xa3Count = xa3.getCommittedCount();
-
-      assertEquals(N, xa1Count);
-      assertEquals(N, xa2Count);
-      assertEquals(N, xa3Count);
-
-      tm.suspend(); // to disassociate thread with any txs.
-      tm.clear();   // clear TM before forcing next failure 
-
-      traceLog.info("--- will force a failure before tx committed");
-      
-      DummyXAResourceImpl xa4 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa5 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa6 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec4 = new DummyRecoverable("four", xa4);
-      DummyRecoverable rec5 = new DummyRecoverable("five", xa5);
-      DummyRecoverable rec6 = new DummyRecoverable("six", xa6);
-
-      recoverables.add(rec4);
-      recoverables.add(rec5);
-      recoverables.add(rec6);
-
-      logger.setFailBeforeCommitting(true);
-      logger.setFailBefore(N);
-   
-      try
-      {
-         for (int i = 0; ;i++)
-         {
-            tm.begin();
-            Transaction tx = tm.getTransaction();
-            tx.enlistResource(xa4);
-            tx.enlistResource(xa5);
-            tx.enlistResource(xa6);
-            tm.commit();
-         }
-      }
-      catch (RecoveryTestingException e)
-      {
-         traceLog.info("Expected exception: " + e);
-         logger.setFailBeforeCommitting(false);
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa4Count = xa4.getCommittedCount();
-      int xa5Count = xa5.getCommittedCount();
-      int xa6Count = xa6.getCommittedCount();
-      
-      assertEquals(N, xa4Count);
-      assertEquals(N, xa5Count);
-      assertEquals(N, xa6Count);
-
-      int xa4RollbackCount = xa4.getRollbackCount();
-      int xa5RollbackCount = xa5.getRollbackCount();
-      int xa6RollbackCount = xa6.getRollbackCount();
-      
-      assertEquals(0, xa4RollbackCount);
-      assertEquals(0, xa5RollbackCount);
-      assertEquals(0, xa6RollbackCount);
-
-      tm.suspend(); // to disassociate thread with any txs.
-      tm.clear();   // clear TM before forcing next failure 
-
-      traceLog.info("--- will force a failure after one resource " +
-                    "but not all have prepared");
-      
-      DummyXAResourceImpl xa7 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa8 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa9 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec7 = new DummyRecoverable("seven", xa7);
-      DummyRecoverable rec8 = new DummyRecoverable("eigth", xa8);
-      DummyRecoverable rec9 = new DummyRecoverable("nine", xa9);
-
-      recoverables.add(rec7);
-      recoverables.add(rec8);
-      recoverables.add(rec9);
-
-      try
-      {
-         tm.begin();
-         Transaction tx = tm.getTransaction();
-         tx.enlistResource(xa7);
-         tx.enlistResource(xa8);
-         tx.enlistResource(xa9);
-         xa8.setPrepareException(new RecoveryTestingException(
-                                 "FAILURE WHEN XA8 WAS ABOUT TO PREPARE"));
-         traceLog.info("Expected RecoveryTestingException...");
-         tm.commit();
-         fail("RecoveryTestingException expected.");
-      }
-      catch (RecoveryTestingException e)
-      {
-         traceLog.info("Expected exception: " + e);
-         xa8.clearPrepareException();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-      
-      int xa7PreparedCount = xa7.getPreparedCount();
-      int xa8PreparedCount = xa8.getPreparedCount();
-      int xa9PreparedCount = xa9.getPreparedCount();
-
-      assertEquals(1, xa7PreparedCount);
-      assertEquals(0, xa8PreparedCount);
-      assertEquals(0, xa9PreparedCount);
-      
-      tm.suspend(); // to disassociate thread with any txs.
-      tm.clear();   // clear TM before forcing next failure 
-      
-      traceLog.info("--- will force a failure after one resource " +
-                    "but not all have committed");
-      
-      DummyXAResourceImpl xa10 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa11 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa12 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec10 = new DummyRecoverable("ten", xa10);
-      DummyRecoverable rec11 = new DummyRecoverable("eleven", xa11);
-      DummyRecoverable rec12 = new DummyRecoverable("twelve", xa12);
-
-      recoverables.add(rec10);
-      recoverables.add(rec11);
-      recoverables.add(rec12);
-
-      try
-      {
-         tm.begin();
-         Transaction tx = tm.getTransaction();
-         tx.enlistResource(xa10);
-         tx.enlistResource(xa11);
-         tx.enlistResource(xa12);
-         xa11.setCommitException(new RecoveryTestingException(
-                                 "FAILURE WHEN XA11 WAS ABOUT TO COMMIT"));
-         traceLog.info("Expected RecoveryTestingException...");
-         tm.commit();
-         fail("RecoveryTestingException expected.");
-      }
-      catch (RecoveryTestingException e)
-      {
-         traceLog.info("Expected exception: " + e);
-         xa11.clearCommitException();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-      
-      int xa10Count = xa10.getCommittedCount();
-      int xa11Count = xa11.getCommittedCount();
-      int xa12Count = xa12.getCommittedCount();
-
-      assertEquals(1, xa10Count);
-      assertEquals(0, xa11Count);
-      assertEquals(0, xa12Count);
-      
-      tm.suspend(); // to disassociate thread with any txs.
-      
-      traceLog.info("--- will test recovery with multiple failures " +
-                    "in the same log file");
-
-      logger.stop();
-
-      try
-      {
-         logger = switchTxLogger();
-         RecoveryManager manager = new RecoveryManager(xidFactory, tm, logger);
-         manager.recover(recoverables);
-         logger.stop();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1NextCount = xa1.getCommittedCount();
-      int xa2NextCount = xa2.getCommittedCount();
-      int xa3NextCount = xa3.getCommittedCount();
-
-      assertEquals(N + 1, xa1NextCount);
-      assertEquals(N + 1, xa2NextCount);
-      assertEquals(N + 1, xa3NextCount);
-      
-      int xa4NextCount = xa4.getCommittedCount();
-      int xa5NextCount = xa5.getCommittedCount();
-      int xa6NextCount = xa6.getCommittedCount();
-
-      assertEquals(N, xa4NextCount);
-      assertEquals(N, xa5NextCount);
-      assertEquals(N, xa6NextCount);
-
-      int xa4NextRollbackCount = xa4.getRollbackCount();
-      int xa5NextRollbackCount = xa5.getRollbackCount();
-      int xa6NextRollbackCount = xa6.getRollbackCount();
-
-      assertEquals(1, xa4NextRollbackCount);
-      assertEquals(1, xa5NextRollbackCount);
-      assertEquals(1, xa6NextRollbackCount);
-
-      int xa7NextPreparedCount = xa7.getPreparedCount();
-      int xa8NextPreparedCount = xa8.getPreparedCount();
-      int xa9NextPreparedCount = xa9.getPreparedCount();
-
-      assertEquals(1, xa7NextPreparedCount);
-      assertEquals(0, xa8NextPreparedCount);
-      assertEquals(0, xa9NextPreparedCount);
-      
-      int xa7RollbackCount = xa7.getRollbackCount();
-      int xa8RollbackCount = xa8.getRollbackCount();
-      int xa9RollbackCount = xa9.getRollbackCount();
-
-      assertEquals(1, xa7RollbackCount);
-      assertEquals(0, xa8RollbackCount);
-      assertEquals(0, xa9RollbackCount);
-      
-      int xa10NextCount = xa10.getCommittedCount();
-      int xa11NextCount = xa11.getCommittedCount();
-      int xa12NextCount = xa12.getCommittedCount();
-
-      assertEquals(1, xa10NextCount);
-      assertEquals(1, xa11NextCount);
-      assertEquals(1, xa12NextCount);
-      
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      cleanLogDir(dirName);
-
-      traceLog.info("DONE TEST");
-   }
-   
-   // The test below assumes that the XAResources are prepared/committed in the 
-   // same order that they were enlisted. This is true for our current 
-   // TransactionImpl, but will change if/when we move on to an implementation 
-   // that prepares/commits XAResources in parallel.
-   public void testMultipleConcurrentFailuresInTheSameLogFile()
-      throws Exception
-   {
-      traceLog.info(">>> testMultipleConcurrentFailuresInTheSameLogFile");
-      
-      MockLogger logger = setupTxLogger();
-      final TxManager tm = TxManager.getInstance();
-      ArrayList recoverables = new ArrayList();
-      final int nResources = 12;
-      
-      final DummyXAResourceImpl[] xa = new DummyXAResourceImpl[nResources];
-      DummyRecoverable rec[] = new DummyRecoverable[nResources];
-      for (int i = 0; i < nResources; i++)
-      {
-         xa[i] = new DummyXAResourceImpl();
-         rec[i] = new DummyRecoverable("rec" + i, xa[i]);
-         recoverables.add(rec[i]);
-      }
-      
-      final Semaphore s = new Semaphore(0);
-
-      Runnable r1 = new Runnable() 
-      {
-         public void run()
-         {
-            traceLog.info("--- started thread that will force a failure " +
-                          "after tx committed");
-            try
-            {
-               for (int i = 0; ;i++)
-               {
-                  tm.begin();
-                  Transaction tx = tm.getTransaction();
-                  tx.enlistResource(xa[0]);
-                  tx.enlistResource(xa[1]);
-                  tx.enlistResource(xa[2]);
-                  if (i == N)
-                     xa[0].setCommitException(new RecoveryTestingException(
-                        "FAILURE BEFORE COMMITTING xa[0] -- THE COMMIT DECISION" +
-                        " WAS LOGGED, BUT NO RESOURCES WERE COMMITTED YET"));
-                  tm.commit();
-               }
-            }
-            catch (RecoveryTestingException e)
-            {
-               traceLog.info("Expected exception: " + e);
-               xa[0].clearCommitException();
-            }
-            catch (Throwable e)
-            {
-               traceLog.info("Unexpected throwable:", e);
-               fail("Unexpected throwable: " + e);
-            }
-
-            int xa0Count = xa[0].getCommittedCount();
-            int xa1Count = xa[1].getCommittedCount();
-            int xa2Count = xa[2].getCommittedCount();
-
-            assertEquals(N, xa0Count);
-            assertEquals(N, xa1Count);
-            assertEquals(N, xa2Count);
-
-            try
-            {
-               tm.suspend(); // to disassociate thread with any txs.
-            }
-            catch (SystemException e)
-            {
-               traceLog.info("Unexpected exception:", e);
-            }
-            
-            traceLog.info("--- finished thread that forced a failure " +
-                          "after tx committed");
-            
-            s.release();
-         }
-      };
-      
-      Runnable r2 = new Runnable() 
-      {
-         public void run()
-         {
-            traceLog.info("--- started thread that will force a failure " +
-                          "before tx committed");
-            
-            try
-            {
-               for (int i = 0; ;i++)
-               {
-                  tm.begin();
-                  Transaction tx = tm.getTransaction();
-                  tx.enlistResource(xa[3]);
-                  tx.enlistResource(xa[4]);
-                  tx.enlistResource(xa[5]);
-                  if (i == N)
-                     xa[5].setAfterPrepareException(new RecoveryTestingException(
-                        "FAILURE AFTER PREPARING xa5 -- ALL RESOURCES WERE " +
-                        "PREPARED BUT NO COMMIT DECISION WAS LOGGED"));
-                  tm.commit();
-               }
-            }
-            catch (RecoveryTestingException e)
-            {
-               traceLog.info("Expected exception: " + e);
-               xa[5].clearAfterPrepareException();
-            }
-            catch (Throwable e)
-            {
-               traceLog.info("Unexpected throwable:", e);
-               fail("Unexpected throwable: " + e);
-            }
-
-            int xa3Count = xa[3].getCommittedCount();
-            int xa4Count = xa[4].getCommittedCount();
-            int xa5Count = xa[5].getCommittedCount();
-            
-            assertEquals(N, xa3Count);
-            assertEquals(N, xa4Count);
-            assertEquals(N, xa5Count);
-
-            int xa3RollbackCount = xa[3].getRollbackCount();
-            int xa4RollbackCount = xa[4].getRollbackCount();
-            int xa5RollbackCount = xa[5].getRollbackCount();
-            
-            assertEquals(0, xa3RollbackCount);
-            assertEquals(0, xa4RollbackCount);
-            assertEquals(0, xa5RollbackCount);
-
-            try
-            {
-               tm.suspend(); // to disassociate thread with any txs.
-            }
-            catch (SystemException e)
-            {
-               traceLog.info("Unexpected exception:", e);
-            }
-            
-            traceLog.info("--- finished thread that forced a failure " +
-                          "before tx committed");
-
-            s.release();
-         }
-      };
-      
-      Runnable r3 = new Runnable() 
-      {
-         public void run()
-         {
-            traceLog.info("--- started thread that will force a failure after" +
-                          " one resource but not all have prepared");
-            try
-            {
-               tm.begin();
-               Transaction tx = tm.getTransaction();
-               tx.enlistResource(xa[6]);
-               tx.enlistResource(xa[7]);
-               tx.enlistResource(xa[8]);
-               xa[7].setPrepareException(new RecoveryTestingException(
-                                    "FAILURE WHEN xa[7] WAS ABOUT TO PREPARE"));
-               tm.commit();
-               fail("RecoveryTestingException expected.");
-            }
-            catch (RecoveryTestingException e)
-            {
-               traceLog.info("Expected exception: " + e);
-               xa[7].clearPrepareException();
-            }
-            catch (Throwable e)
-            {
-               traceLog.info("Unexpected throwable:", e);
-               fail("Unexpected throwable: " + e);
-            }
-            
-            int xa6PreparedCount = xa[6].getPreparedCount();
-            int xa7PreparedCount = xa[7].getPreparedCount();
-            int xa8PreparedCount = xa[8].getPreparedCount();
-
-            assertEquals(1, xa6PreparedCount);
-            assertEquals(0, xa7PreparedCount);
-            assertEquals(0, xa8PreparedCount);
-            
-            try
-            {
-               tm.suspend(); // to disassociate thread with any txs.
-            }
-            catch (SystemException e)
-            {
-               traceLog.info("Unexpected exception:", e);
-            }
-            
-            traceLog.info("--- finished thread that forced a failure after" +
-                          " one resource but not all have prepared");
-            s.release();
-         }
-      };
-
-      Runnable r4 = new Runnable()
-      {
-         public void run()
-         {
-            traceLog.info("--- started thread that will force a failure after" +
-                          " one resource but not all have committed");
-            try
-            {
-               tm.begin();
-               Transaction tx = tm.getTransaction();
-               tx.enlistResource(xa[9]);
-               tx.enlistResource(xa[10]);
-               tx.enlistResource(xa[11]);
-               xa[10].setCommitException(new RecoveryTestingException(
-                                      "FAILURE WHEN xa10 WAS ABOUT TO COMMIT"));
-               tm.commit();
-               fail("RecoveryTestingException expected.");
-            }
-            catch (RecoveryTestingException e)
-            {
-               traceLog.info("Expected exception: " + e);
-               xa[10].clearCommitException();
-            }
-            catch (Throwable e)
-            {
-               traceLog.info("Unexpected throwable:", e);
-               fail("Unexpected throwable: " + e);
-            }
-            
-            int xa9Count = xa[9].getCommittedCount();
-            int xa10Count = xa[10].getCommittedCount();
-            int xa11Count = xa[11].getCommittedCount();
-
-            assertEquals(1, xa9Count);
-            assertEquals(0, xa10Count);
-            assertEquals(0, xa11Count);
-            
-            try
-            {
-               tm.suspend(); // to disassociate thread with any txs.
-            }
-            catch (SystemException e)
-            {
-               traceLog.info("Unexpected exception:", e);
-            }
-            
-            traceLog.info("--- finished thread that forced failure after " +
-                          "one resource but not all have committed");
-            s.release();
-         }
-      };
-
-      // start threads that will force failures
-      new Thread(r1).start();
-      new Thread(r2).start();
-      new Thread(r3).start();
-      new Thread(r4).start();
-      
-      // wait untill all threads have finished
-      s.acquire();
-      s.acquire();
-      s.acquire();
-      s.acquire();
-
-      traceLog.info("--- will test recovery with multiple failures in the same log file");
-
-      logger.stop();
-
-      try
-      {
-         logger = switchTxLogger();
-         RecoveryManager manager = new RecoveryManager(xidFactory, tm, logger);
-         manager.recover(recoverables);
-         logger.stop();
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa0NextCount = xa[0].getCommittedCount();
-      int xa1NextCount = xa[1].getCommittedCount();
-      int xa2NextCount = xa[2].getCommittedCount();
-
-      assertEquals(N + 1, xa0NextCount);
-      assertEquals(N + 1, xa1NextCount);
-      assertEquals(N + 1, xa2NextCount);
-      
-      int xa3NextCount = xa[3].getCommittedCount();
-      int xa4NextCount = xa[4].getCommittedCount();
-      int xa5NextCount = xa[5].getCommittedCount();
-
-      assertEquals(N, xa3NextCount);
-      assertEquals(N, xa4NextCount);
-      assertEquals(N, xa5NextCount);
-
-      int xa3NextRollbackCount = xa[3].getRollbackCount();
-      int xa4NextRollbackCount = xa[4].getRollbackCount();
-      int xa5NextRollbackCount = xa[5].getRollbackCount();
-
-      assertEquals(1, xa3NextRollbackCount);
-      assertEquals(1, xa4NextRollbackCount);
-      assertEquals(1, xa5NextRollbackCount);
-
-      int xa6NextPreparedCount = xa[6].getPreparedCount();
-      int xa7NextPreparedCount = xa[7].getPreparedCount();
-      int xa8NextPreparedCount = xa[8].getPreparedCount();
-
-      assertEquals(1, xa6NextPreparedCount);
-      assertEquals(0, xa7NextPreparedCount);
-      assertEquals(0, xa8NextPreparedCount);
-      
-      int xa6RollbackCount = xa[6].getRollbackCount();
-      int xa7RollbackCount = xa[7].getRollbackCount();
-      int xa8RollbackCount = xa[8].getRollbackCount();
-
-      assertEquals(1, xa6RollbackCount);
-      assertEquals(0, xa7RollbackCount);
-      assertEquals(0, xa8RollbackCount);
-      
-      int xa9NextCount = xa[9].getCommittedCount();
-      int xa10NextCount = xa[10].getCommittedCount();
-      int xa11NextCount = xa[11].getCommittedCount();
-
-      assertEquals(1, xa9NextCount);
-      assertEquals(1, xa10NextCount);
-      assertEquals(1, xa11NextCount);
-      
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      cleanLogDir(dirName);
-
-      traceLog.info("DONE TEST");
-   }
-   
-   public void testLogCorruptionInTheChecksumOfTheLastRecord() 
-      throws Exception
-   {
-      traceLog.info(">>> testLogCorruptionInTheChecksumOfTheLastRecord()");
-      
-      MockLogger logger = setupTxLogger();
-      TxManager tm = TxManager.getInstance();
-      
-      DummyXAResourceImpl xa1 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa2 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa3 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-      DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-      DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-      ArrayList recoverables = new ArrayList();
-      recoverables.add(rec1);
-      recoverables.add(rec2);
-      recoverables.add(rec3);
-
-      logger.setFailAfterCommitting(true);
-      logger.setFailAfter(N);
-      
-      try
-      {
-         for (int i = 0; ;i++)
-         {
-            tm.begin();
-            Transaction tx = tm.getTransaction();
-            tx.enlistResource(xa1);
-            tx.enlistResource(xa2);
-            tx.enlistResource(xa3);
-            tm.commit();
-         }
-      }
-      catch (RecoveryTestingException e)
-      {
-         traceLog.info("Expected exception: " + e);
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      tm.suspend(); // to disassociate thread with any txs.
-
-      logger.stop();
-
-      int xa1Count = xa1.getCommittedCount();
-      int xa2Count = xa2.getCommittedCount();
-      int xa3Count = xa3.getCommittedCount();
-
-      int xa1RollbackCount = xa1.getRollbackCount();
-      int xa2RollbackCount = xa2.getRollbackCount();
-      int xa3RollbackCount = xa3.getRollbackCount();
-
-      try
-      {
-         logger = switchTxLogger();
-         
-         RecoveryLogReader[] readers = logger.getRecoveryLogs();
-         for (int i = 0; i < readers.length; i++)
-         {
-            File f = new File(readers[i].getLogFileName());
-            traceLog.info("log file: " + f.getName() + ", len: " + f.length());
-            if (f.length() == logFileSize)
-            {
-               RandomAccessFile raf = new RandomAccessFile(f, "rw");
-               // Scan backwards and overwrite with a zero 
-               // the last non-zero byte in the log file.
-               for (long pos = logFileSize - 1; pos >= 0; pos--)
-               {
-                  raf.seek(pos);
-                  byte b = raf.readByte();
-                  if (b != 0)
-                  {
-                     traceLog.info("Overwriting with a zero the last " +
-                                   "non-zero byte in log file " + f.getName());
-                     raf.seek(pos);
-                     raf.writeByte(0);
-                     break; 
-                  }
-               }
-            }
-         }
-         
-         RecoveryManager manager = new RecoveryManager(xidFactory, tm, logger);
-         manager.recover(recoverables);
-         logger.stop();
-      }
-      catch (CorruptedLogRecordException e)
-      {
-         traceLog.info("Expected exception:", e);
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1NextCount = xa1.getCommittedCount();
-      int xa2NextCount = xa2.getCommittedCount();
-      int xa3NextCount = xa3.getCommittedCount();
-
-      int xa1NextRollbackCount = xa1.getRollbackCount();
-      int xa2NextRollbackCount = xa2.getRollbackCount();
-      int xa3NextRollbackCount = xa3.getRollbackCount();
-
-      assertEquals(N, xa1Count);
-      assertEquals(N, xa2Count);
-      assertEquals(N, xa3Count);
-      assertEquals(N, xa1NextCount);
-      assertEquals(N, xa2NextCount);
-      assertEquals(N, xa3NextCount);
-
-      assertEquals(0, xa1RollbackCount);
-      assertEquals(0, xa2RollbackCount);
-      assertEquals(0, xa3RollbackCount);
-      assertEquals(1, xa1NextRollbackCount);
-      assertEquals(1, xa2NextRollbackCount);
-      assertEquals(1, xa3NextRollbackCount);
-
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      cleanLogDir(dirName);
-
-      traceLog.info("DONE TEST");
-   }
-
-   public void testLogCorruptionInTheHeaderOfTheLastRecord() 
-      throws Exception
-   {
-      traceLog.info(">>> testLogCorruptionInTheHeaderOfTheLastRecord()");
-      
-      MockLogger logger = setupTxLogger();
-      TxManager tm = TxManager.getInstance();
-      
-      DummyXAResourceImpl xa1 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa2 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa3 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-      DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-      DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-      ArrayList recoverables = new ArrayList();
-      recoverables.add(rec1);
-      recoverables.add(rec2);
-      recoverables.add(rec3);
-
-      logger.setFailAfterCommitting(true);
-      logger.setFailAfter(N);
-      
-      try
-      {
-         for (int i = 0; ;i++)
-         {
-            tm.begin();
-            Transaction tx = tm.getTransaction();
-            tx.enlistResource(xa1);
-            tx.enlistResource(xa2);
-            tx.enlistResource(xa3);
-            tm.commit();
-         }
-      }
-      catch (RecoveryTestingException e)
-      {
-         traceLog.info("Expected exception: " + e);
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      tm.suspend(); // to disassociate thread with any txs.
-
-      logger.stop();
-
-      int xa1Count = xa1.getCommittedCount();
-      int xa2Count = xa2.getCommittedCount();
-      int xa3Count = xa3.getCommittedCount();
-
-      int xa1RollbackCount = xa1.getRollbackCount();
-      int xa2RollbackCount = xa2.getRollbackCount();
-      int xa3RollbackCount = xa3.getRollbackCount();
-
-      try
-      {
-         logger = switchTxLogger();
-         
-         RecoveryLogReader[] readers = logger.getRecoveryLogs();
-         for (int i = 0; i < readers.length; i++)
-         {
-            File f = new File(readers[i].getLogFileName());
-            traceLog.info("log file: " + f.getName() + ", len: " + f.length());
-            if (f.length() == logFileSize)
-            {
-               RandomAccessFile raf = new RandomAccessFile(f, "rw");
-               // Scan backwards to the header of the last log record. 
-               long pos = logFileSize - LogRecord.HEADER_LEN;
-               while (!match(raf, pos, LogRecord.HEADER))
-                    pos--;
-               traceLog.info("Overwriting with a zero the first header " +
-                             "byte of the last record in log file " + 
-                             f.getName());
-               raf.seek(pos);
-               raf.writeByte(0);
-            }
-         }
-         
-         RecoveryManager manager = new RecoveryManager(xidFactory, tm, logger);
-         manager.recover(recoverables);
-         logger.stop();
-      }
-      catch (CorruptedLogRecordException e)
-      {
-         traceLog.info("Expected exception:", e);
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1NextCount = xa1.getCommittedCount();
-      int xa2NextCount = xa2.getCommittedCount();
-      int xa3NextCount = xa3.getCommittedCount();
-
-      int xa1NextRollbackCount = xa1.getRollbackCount();
-      int xa2NextRollbackCount = xa2.getRollbackCount();
-      int xa3NextRollbackCount = xa3.getRollbackCount();
-
-      assertEquals(N, xa1Count);
-      assertEquals(N, xa2Count);
-      assertEquals(N, xa3Count);
-      assertEquals(N, xa1NextCount);
-      assertEquals(N, xa2NextCount);
-      assertEquals(N, xa3NextCount);
-
-      assertEquals(0, xa1RollbackCount);
-      assertEquals(0, xa2RollbackCount);
-      assertEquals(0, xa3RollbackCount);
-      assertEquals(1, xa1NextRollbackCount);
-      assertEquals(1, xa2NextRollbackCount);
-      assertEquals(1, xa3NextRollbackCount);
-
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      cleanLogDir(dirName);
-
-      traceLog.info("DONE TEST");
-   }
-
-   public void testLogCorruptionInTheRecLenFieldOfTheLastRecord() 
-      throws Exception
-   {
-         traceLog.info(">>> testLogCorruptionInTheRecLenFieldOfTheLastRecord()");
-         
-         MockLogger logger = setupTxLogger();
-         TxManager tm = TxManager.getInstance();
-         
-         DummyXAResourceImpl xa1 = new DummyXAResourceImpl();
-         DummyXAResourceImpl xa2 = new DummyXAResourceImpl();
-         DummyXAResourceImpl xa3 = new DummyXAResourceImpl();
-
-         DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-         DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-         DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-         ArrayList recoverables = new ArrayList();
-         recoverables.add(rec1);
-         recoverables.add(rec2);
-         recoverables.add(rec3);
-
-         logger.setFailAfterCommitting(true);
-         logger.setFailAfter(N);
-         
-         try
-         {
-            for (int i = 0; ;i++)
-            {
-               tm.begin();
-               Transaction tx = tm.getTransaction();
-               tx.enlistResource(xa1);
-               tx.enlistResource(xa2);
-               tx.enlistResource(xa3);
-               tm.commit();
-            }
-         }
-         catch (RecoveryTestingException e)
-         {
-            traceLog.info("Expected exception: " + e);
-         }
-         catch (Throwable e)
-         {
-            traceLog.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-
-         tm.suspend(); // to disassociate thread with any txs.
-
-         logger.stop();
-
-         int xa1Count = xa1.getCommittedCount();
-         int xa2Count = xa2.getCommittedCount();
-         int xa3Count = xa3.getCommittedCount();
-
-         int xa1RollbackCount = xa1.getRollbackCount();
-         int xa2RollbackCount = xa2.getRollbackCount();
-         int xa3RollbackCount = xa3.getRollbackCount();
-
-         try
-         {
-            logger = switchTxLogger();
-            
-            RecoveryLogReader[] readers = logger.getRecoveryLogs();
-            for (int i = 0; i < readers.length; i++)
-            {
-               File f = new File(readers[i].getLogFileName());
-               traceLog.info("log file: " + f.getName() + ", len: " + f.length());
-               if (f.length() == logFileSize)
-               {
-                  RandomAccessFile raf = new RandomAccessFile(f, "rw");
-                  // Scan backwards to the header of the last log record. 
-                  long pos = logFileSize - LogRecord.HEADER_LEN;
-                  while (!match(raf, pos, LogRecord.HEADER))
-                       pos--;
-                  pos += LogRecord.HEADER_LEN;
-                  traceLog.info("Changing the first recLen byte of the " +
-                                "last record in log file " + f.getName());
-                  raf.seek(pos);
-                  byte b = raf.readByte();
-                  raf.seek(pos);
-                  raf.writeByte(b + 1);
-               }
-            }
-            
-            RecoveryManager manager = new RecoveryManager(xidFactory, tm, logger);
-            manager.recover(recoverables);
-            logger.stop();
-         }
-         catch (CorruptedLogRecordException e)
-         {
-            traceLog.info("Expected exception:", e);
-         }
-         catch (Throwable e)
-         {
-            traceLog.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-
-         int xa1NextCount = xa1.getCommittedCount();
-         int xa2NextCount = xa2.getCommittedCount();
-         int xa3NextCount = xa3.getCommittedCount();
-
-         int xa1NextRollbackCount = xa1.getRollbackCount();
-         int xa2NextRollbackCount = xa2.getRollbackCount();
-         int xa3NextRollbackCount = xa3.getRollbackCount();
-
-         assertEquals(N, xa1Count);
-         assertEquals(N, xa2Count);
-         assertEquals(N, xa3Count);
-         assertEquals(N, xa1NextCount);
-         assertEquals(N, xa2NextCount);
-         assertEquals(N, xa3NextCount);
-
-         assertEquals(0, xa1RollbackCount);
-         assertEquals(0, xa2RollbackCount);
-         assertEquals(0, xa3RollbackCount);
-         assertEquals(1, xa1NextRollbackCount);
-         assertEquals(1, xa2NextRollbackCount);
-         assertEquals(1, xa3NextRollbackCount);
-
-         Thread.sleep(1000); // give time to cleanup for logger
-
-         cleanLogDir(dirName);
-
-         traceLog.info("DONE TEST");
-   }
-   
-   public void testChecksumCorruptionAtMidLogFileArea()
-      throws Exception
-   {
-      traceLog.info(">>> testChecksumCorruptionAtMidLogFileArea()");
-      
-      int n = 10; 
-      MockLogger logger = setupTxLogger();
-      TxManager tm = TxManager.getInstance();
-      
-      DummyXAResource xa1 = new DummyXAResourceImpl();
-      DummyXAResource xa2 = new DummyXAResourceImpl();
-      DummyXAResource xa3 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-      DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-      DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-      ArrayList recoverables = new ArrayList();
-      recoverables.add(rec1);
-      recoverables.add(rec2);
-      recoverables.add(rec3);
-
-      logger.setFailAfterCommitting(true);
-      logger.setFailAfter(n);
-      
-      try
-      {
-         for (int i = 0; ;i++)
-         {
-            tm.begin();
-            Transaction tx = tm.getTransaction();
-            tx.enlistResource(xa1);
-            tx.enlistResource(xa2);
-            tx.enlistResource(xa3);
-            tm.commit();
-         }
-      }
-      catch (RecoveryTestingException e)
-      {
-         traceLog.info("Expected exception: " + e);
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      tm.suspend(); // to disassociate thread with any txs.
-
-      logger.stop();
-
-      int xa1Count = xa1.getCommittedCount();
-      int xa2Count = xa2.getCommittedCount();
-      int xa3Count = xa3.getCommittedCount();
-
-      int xa1RollbackCount = xa1.getRollbackCount();
-      int xa2RollbackCount = xa2.getRollbackCount();
-      int xa3RollbackCount = xa3.getRollbackCount();
-
-      try
-      {
-         logger = switchTxLogger();
-         
-         RecoveryLogReader[] readers = logger.getRecoveryLogs();
-         for (int i = 0; i < readers.length; i++)
-         {
-            File f = new File(readers[i].getLogFileName());
-            traceLog.info("log file: " + f.getName() + ", len: " + f.length());
-            if (f.length() == logFileSize)
-            {
-               RandomAccessFile raf = new RandomAccessFile(f, "rw");
-               
-               // Corrupt the last (the tenth) log record, by scanning 
-               // backwards and overwrite with a zero the last non-zero byte 
-               // in the log file.
-
-               for (long pos = logFileSize - 1; pos >= 0; pos--)
-               {
-                  raf.seek(pos);
-                  byte b = raf.readByte();
-                  if (b != 0)
-                  {
-                     traceLog.info("Overwriting with a zero the last " +
-                                   "non-zero byte in log file " + f.getName());
-                     raf.seek(pos);
-                     raf.writeByte(0);
-                     break; 
-                  }
-               }
-
-               // Find the fourth log record.
-               long pos = 0;
-               for (int countMatches = 0; countMatches < 4; pos++)
-               {
-                  if (match(raf, pos, LogRecord.HEADER))
-                  {
-                     traceLog.info("found log record at position " + pos);
-                     countMatches++;
-                  }
-               }
-               --pos; // point to first byte of fourth log record
-               --pos; // point to last byte of third log record
-               
-               // Now corrupt the third log record by scanning backwards and 
-               // overwriting with a zero the last non-zero byte that precedes
-               // the fourth log record.
-               
-               raf.seek(pos);
-               byte b = raf.readByte();
-               while (b == 0)
-               {
-                  pos--;
-                  raf.seek(pos);
-                  b = raf.readByte();
-               }
-               traceLog.info("Corrupting the third record in log file " +
-                             f.getName() + ", pos=" + pos);
-               raf.seek(pos);
-               raf.writeByte(0);
-               
-               // Also corrupt the next log record to check if the forward
-               // scan can handle more than one bad records. 
-               ++pos; // point to first byte of fourth log record
-               ++pos; // point to second byte of fourth log record
-               while (!match(raf, pos, LogRecord.HEADER))
-                  pos++;
-               // Now pos points to the first byte of the fifth log record.
-               traceLog.info("found log record at position " + pos);
-               --pos; // point to last byte of fourth log record
-
-               traceLog.info("Corrupting the fourth record in log file " +
-                     f.getName() + ", pos=" + pos);
-               raf.seek(pos);
-               raf.writeByte(0);
-            }
-         }
-         
-         RecoveryManager manager = new RecoveryManager(xidFactory, tm, logger);
-         manager.recover(recoverables);
-         logger.stop();
-      }
-      catch (CorruptedLogRecordException e)
-      {
-         traceLog.info("Expected exception:", e);
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1NextCount = xa1.getCommittedCount();
-      int xa2NextCount = xa2.getCommittedCount();
-      int xa3NextCount = xa3.getCommittedCount();
-
-      int xa1NextRollbackCount = xa1.getRollbackCount();
-      int xa2NextRollbackCount = xa2.getRollbackCount();
-      int xa3NextRollbackCount = xa3.getRollbackCount();
-
-      int xa1PrepareCount = xa1.getPreparedCount();
-      int xa2PrepareCount = xa2.getPreparedCount();
-      int xa3PrepareCount = xa3.getPreparedCount();
-
-      assertEquals(n, xa1Count);
-      assertEquals(n, xa2Count);
-      assertEquals(n, xa3Count);
-      assertEquals(n, xa1NextCount);
-      assertEquals(n, xa2NextCount);
-      assertEquals(n, xa3NextCount);
-
-      assertEquals(0, xa1RollbackCount);
-      assertEquals(0, xa2RollbackCount);
-      assertEquals(0, xa3RollbackCount);
-      
-      // In addition to the bad records area in the middle of the log file,
-      // we also have a bad record at the very end of the log file, for a 
-      // transaction whose XA resources were still prepared at recovery time.
-      // The log corruption in the middle of the log file disabled presumed 
-      // rollback, so the prepared resources should not have been rolledback.
-      
-      assertEquals(0, xa1NextRollbackCount); // no rollbacks
-      assertEquals(0, xa2NextRollbackCount);
-      assertEquals(0, xa3NextRollbackCount);
-
-      assertEquals(1, xa1PrepareCount - xa1NextCount); // still prepared
-      assertEquals(1, xa2PrepareCount - xa2NextCount);
-      assertEquals(1, xa3PrepareCount - xa3NextCount);
-      
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      cleanLogDir(dirName);
-
-      traceLog.info("DONE TEST");
-   }
-   
-   public void testHeaderCorruptionAtMidLogFileArea()
-      throws Exception
-   {
-      traceLog.info(">>> testHeaderCorruptionAtMidLogFileArea()");
-      
-      int n = 10; 
-      MockLogger logger = setupTxLogger();
-      TxManager tm = TxManager.getInstance();
-      
-      DummyXAResourceImpl xa1 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa2 = new DummyXAResourceImpl();
-      DummyXAResourceImpl xa3 = new DummyXAResourceImpl();
-
-      DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-      DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-      DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-      ArrayList recoverables = new ArrayList();
-      recoverables.add(rec1);
-      recoverables.add(rec2);
-      recoverables.add(rec3);
-
-      logger.setFailAfterCommitting(true);
-      logger.setFailAfter(n);
-      
-      try
-      {
-         for (int i = 0; ;i++)
-         {
-            tm.begin();
-            Transaction tx = tm.getTransaction();
-            tx.enlistResource(xa1);
-            tx.enlistResource(xa2);
-            tx.enlistResource(xa3);
-            tm.commit();
-         }
-      }
-      catch (RecoveryTestingException e)
-      {
-         traceLog.info("Expected exception: " + e);
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      tm.suspend(); // to disassociate thread with any txs.
-
-      logger.stop();
-
-      int xa1Count = xa1.getCommittedCount();
-      int xa2Count = xa2.getCommittedCount();
-      int xa3Count = xa3.getCommittedCount();
-
-      int xa1RollbackCount = xa1.getRollbackCount();
-      int xa2RollbackCount = xa2.getRollbackCount();
-      int xa3RollbackCount = xa3.getRollbackCount();
-
-      try
-      {
-         logger = switchTxLogger();
-         
-         RecoveryLogReader[] readers = logger.getRecoveryLogs();
-         for (int i = 0; i < readers.length; i++)
-         {
-            File f = new File(readers[i].getLogFileName());
-            traceLog.info("log file: " + f.getName() + ", len: " + f.length());
-            if (f.length() == logFileSize)
-            {
-               RandomAccessFile raf = new RandomAccessFile(f, "rw");
-               
-               // Corrupt the last (the tenth) log record, by scanning 
-               // backwards and overwrite with a zero the last non-zero byte 
-               // in the log file.
-
-               for (long pos = logFileSize - 1; pos >= 0; pos--)
-               {
-                  raf.seek(pos);
-                  byte b = raf.readByte();
-                  if (b != 0)
-                  {
-                     traceLog.info("Overwriting with a zero the last " +
-                                   "non-zero byte in log file " + f.getName());
-                     raf.seek(pos);
-                     raf.writeByte(0);
-                     break; 
-                  }
-               }
-
-               // Find the third log record.
-               long pos = 0;
-               for (int countMatches = 0; countMatches < 3; pos++)
-               {
-                  if (match(raf, pos, LogRecord.HEADER))
-                  {
-                     traceLog.info("found log record at position " + pos);
-                     countMatches++;
-                  }
-               }
-               
-               traceLog.info("Overwriting with a zero the second header " +
-                             "byte of the third record in log file " + 
-                             f.getName());
-               raf.seek(pos);
-               raf.writeByte(0);
-               
-               // Also corrupt the next log record to check if the forward
-               // scan can handle more than one bad records. 
-               while (!match(raf, pos, LogRecord.HEADER))
-                  pos++;
-               // Now pos points to the first byte of the fourth log record.
-               traceLog.info("found log record at position " + pos);
-
-               traceLog.info("Overwriting with a zero the first header " +
-                             "byte of the fourth record in log file " + 
-                             f.getName());
-               raf.seek(pos);
-               raf.writeByte(0);
-            }
-         }
-         
-         RecoveryManager manager = new RecoveryManager(xidFactory, tm, logger);
-         manager.recover(recoverables);
-         logger.stop();
-      }
-      catch (CorruptedLogRecordException e)
-      {
-         traceLog.info("Expected exception:", e);
-      }
-      catch (Throwable e)
-      {
-         traceLog.info("Unexpected throwable:", e);
-         fail("Unexpected throwable: " + e);
-      }
-
-      int xa1NextCount = xa1.getCommittedCount();
-      int xa2NextCount = xa2.getCommittedCount();
-      int xa3NextCount = xa3.getCommittedCount();
-
-      int xa1NextRollbackCount = xa1.getRollbackCount();
-      int xa2NextRollbackCount = xa2.getRollbackCount();
-      int xa3NextRollbackCount = xa3.getRollbackCount();
-
-      int xa1PrepareCount = xa1.getPreparedCount();
-      int xa2PrepareCount = xa2.getPreparedCount();
-      int xa3PrepareCount = xa3.getPreparedCount();
-
-      assertEquals(n, xa1Count);
-      assertEquals(n, xa2Count);
-      assertEquals(n, xa3Count);
-      assertEquals(n, xa1NextCount);
-      assertEquals(n, xa2NextCount);
-      assertEquals(n, xa3NextCount);
-
-      assertEquals(0, xa1RollbackCount);
-      assertEquals(0, xa2RollbackCount);
-      assertEquals(0, xa3RollbackCount);
-      
-      // In addition to the bad records area in the middle of the log file,
-      // we also have a bad record at the very end of the log file, for a 
-      // transaction whose XA resources were still prepared at recovery time.
-      // The log corruption in the middle of the log file disabled presumed 
-      // rollback, so the prepared resources should not have been rolledback.
-      
-      assertEquals(0, xa1NextRollbackCount); // no rollbacks
-      assertEquals(0, xa2NextRollbackCount);
-      assertEquals(0, xa3NextRollbackCount);
-
-      assertEquals(1, xa1PrepareCount - xa1NextCount); // still prepared
-      assertEquals(1, xa2PrepareCount - xa2NextCount);
-      assertEquals(1, xa3PrepareCount - xa3NextCount);
-      
-      Thread.sleep(1000); // give time to cleanup for logger
-
-      cleanLogDir(dirName);
-
-      traceLog.info("DONE TEST");
-   }
-   
-   public void testRecLenCorruptionAtMidLogFileArea()
-      throws Exception
-   {
-         traceLog.info(">>> testRecLenCorruptionAtMidLogFileArea()");
-         
-         int n = 10; 
-         MockLogger logger = setupTxLogger();
-         TxManager tm = TxManager.getInstance();
-         
-         DummyXAResourceImpl xa1 = new DummyXAResourceImpl();
-         DummyXAResourceImpl xa2 = new DummyXAResourceImpl();
-         DummyXAResourceImpl xa3 = new DummyXAResourceImpl();
-
-         DummyRecoverable rec1 = new DummyRecoverable("one", xa1);
-         DummyRecoverable rec2 = new DummyRecoverable("two", xa2);
-         DummyRecoverable rec3 = new DummyRecoverable("three", xa3);
-
-         ArrayList recoverables = new ArrayList();
-         recoverables.add(rec1);
-         recoverables.add(rec2);
-         recoverables.add(rec3);
-
-         logger.setFailAfterCommitting(true);
-         logger.setFailAfter(n);
-         
-         try
-         {
-            for (int i = 0; ;i++)
-            {
-               tm.begin();
-               Transaction tx = tm.getTransaction();
-               tx.enlistResource(xa1);
-               tx.enlistResource(xa2);
-               tx.enlistResource(xa3);
-               tm.commit();
-            }
-         }
-         catch (RecoveryTestingException e)
-         {
-            traceLog.info("Expected exception: " + e);
-         }
-         catch (Throwable e)
-         {
-            traceLog.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-
-         tm.suspend(); // to disassociate thread with any txs.
-
-         logger.stop();
-
-         int xa1Count = xa1.getCommittedCount();
-         int xa2Count = xa2.getCommittedCount();
-         int xa3Count = xa3.getCommittedCount();
-
-         int xa1RollbackCount = xa1.getRollbackCount();
-         int xa2RollbackCount = xa2.getRollbackCount();
-         int xa3RollbackCount = xa3.getRollbackCount();
-
-         try
-         {
-            logger = switchTxLogger();
-            
-            RecoveryLogReader[] readers = logger.getRecoveryLogs();
-            for (int i = 0; i < readers.length; i++)
-            {
-               File f = new File(readers[i].getLogFileName());
-               traceLog.info("log file: " + f.getName() + ", len: " + f.length());
-               if (f.length() == logFileSize)
-               {
-                  RandomAccessFile raf = new RandomAccessFile(f, "rw");
-                  
-                  // Corrupt the last (the tenth) log record, by scanning 
-                  // backwards and overwrite with a zero the last non-zero byte 
-                  // in the log file.
-
-                  for (long pos = logFileSize - 1; pos >= 0; pos--)
-                  {
-                     raf.seek(pos);
-                     byte b = raf.readByte();
-                     if (b != 0)
-                     {
-                        traceLog.info("Overwriting with a zero the last " +
-                                      "non-zero byte in log file " + f.getName());
-                        raf.seek(pos);
-                        raf.writeByte(0);
-                        break; 
-                     }
-                  }
-
-                  // Find the third log record.
-                  long pos = 0;
-                  for (int countMatches = 0; countMatches < 3; pos++)
-                  {
-                     if (match(raf, pos, LogRecord.HEADER))
-                     {
-                        traceLog.info("found log record at position " + pos);
-                        countMatches++;
-                     }
-                  }
-                  pos += LogRecord.HEADER_LEN - 1;
-                  traceLog.info("Changing the first recLen byte of the " +
-                                "third record in log file " + f.getName());
-                  raf.seek(pos);
-                  byte b = raf.readByte();
-                  raf.seek(pos);
-                  raf.writeByte(b + 1);
-                  
-                  // Also corrupt the next log record to check if the forward
-                  // scan can handle more than one bad records. 
-                  while (!match(raf, pos, LogRecord.HEADER))
-                     pos++;
-                  // Now pos points to the first byte of the fourth log record.
-                  traceLog.info("found log record at position " + pos);
-
-                  pos += LogRecord.HEADER_LEN;
-                  traceLog.info("Changing the first recLen byte of the " +
-                                "fourth record in log file " + f.getName());
-                  raf.seek(pos);
-                  b = raf.readByte();
-                  raf.seek(pos);
-                  raf.writeByte(b + 1);
-               }
-            }
-            
-            RecoveryManager manager = new RecoveryManager(xidFactory, tm, logger);
-            manager.recover(recoverables);
-            logger.stop();
-         }
-         catch (CorruptedLogRecordException e)
-         {
-            traceLog.info("Expected exception:", e);
-         }
-         catch (Throwable e)
-         {
-            traceLog.info("Unexpected throwable:", e);
-            fail("Unexpected throwable: " + e);
-         }
-
-         int xa1NextCount = xa1.getCommittedCount();
-         int xa2NextCount = xa2.getCommittedCount();
-         int xa3NextCount = xa3.getCommittedCount();
-
-         int xa1NextRollbackCount = xa1.getRollbackCount();
-         int xa2NextRollbackCount = xa2.getRollbackCount();
-         int xa3NextRollbackCount = xa3.getRollbackCount();
-
-         int xa1PrepareCount = xa1.getPreparedCount();
-         int xa2PrepareCount = xa2.getPreparedCount();
-         int xa3PrepareCount = xa3.getPreparedCount();
-
-         assertEquals(n, xa1Count);
-         assertEquals(n, xa2Count);
-         assertEquals(n, xa3Count);
-         assertEquals(n, xa1NextCount);
-         assertEquals(n, xa2NextCount);
-         assertEquals(n, xa3NextCount);
-
-         assertEquals(0, xa1RollbackCount);
-         assertEquals(0, xa2RollbackCount);
-         assertEquals(0, xa3RollbackCount);
-         
-         // In addition to the bad records area in the middle of the log file,
-         // we also have a bad record at the very end of the log file, for a 
-         // transaction whose XA resources were still prepared at recovery time.
-         // The log corruption in the middle of the log file disabled presumed 
-         // rollback, so the prepared resources should not have been rolledback.
-         
-         assertEquals(0, xa1NextRollbackCount); // no rollbacks
-         assertEquals(0, xa2NextRollbackCount);
-         assertEquals(0, xa3NextRollbackCount);
-
-         assertEquals(1, xa1PrepareCount - xa1NextCount); // still prepared
-         assertEquals(1, xa2PrepareCount - xa2NextCount);
-         assertEquals(1, xa3PrepareCount - xa3NextCount);
-         
-         Thread.sleep(1000); // give time to cleanup for logger
-
-         cleanLogDir(dirName);
-
-         traceLog.info("DONE TEST");
-   }
-   
-   private MockLogger setupTxLogger() throws Exception
-   {
-      cleanLogDir(dirName);
-      return switchTxLogger();
-   }
-   
-   private MockLogger switchTxLogger() throws Exception
-   {
-      MockLogger logger = new MockLogger();
-      
-      logger.setDirectoryList(directoryList);
-      logger.setHeuristicStatusLogDirectory(heuristicDir);
-      logger.setLogFileSize(logFileSize);
-      logger.setXidFactory(xidFactory);
-      logger.start();
-
-      TxManager.getInstance().clear();
-      TxManager.getInstance().setRecoveryLogger(logger);
-      
-      return logger;
-   }
-
-   private void cleanLogDir(String dirName)
-   {
-      File dir = new File(dirName);
-      dir = dir.getAbsoluteFile();
-      if (dir.exists())
-      {
-         File[] logs = dir.listFiles();
-         if (logs != null)
-         {
-            for (int i = 0; i < logs.length; i++)
-            {
-               if (logs[i].exists()) logs[i].delete();
-            }
-         }
-      }
-   }
-
-   /**
-    * Returns true if the byte sequence that starts at given position of a
-    * file matches a given byte array.
-    * 
-    * @param file a random access file open for reading
-    * @param pos the file position of the byte sequence to be compared against 
-    *            the <code>pattern</code> byte array 
-    * @param pattern the byte pattern to match.
-    * @return true if the pattern appears at the specified position of the
-    *         file, and false otherwise/
-    * @throws IOException if there is a problem reading the file.
-    */
-   private static boolean match(RandomAccessFile file, long pos, byte[] pattern)
-      throws IOException
-   {
-      for (int i = 0; i < pattern.length; i++)
-      {
-         file.seek(pos + i);
-         if (file.readByte() != pattern[i])
-            return false;
-      }
-      return true;
-   }
-   
-
-   public static Test suite() throws Exception
-   {
-      TestSuite suite = new TestSuite();
-      suite.addTest(new TestSuite(RecoverabilityTestCase.class));
-      return suite;
-   }
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,70 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashAfterDistributedTxCommittedIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashAfterDistributedTxCommittedIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashAfterDistributedTxCommittedIIOPJBRemTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      log.info("Commits after recovery: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-
-      assertEquals(3 * (N + 1), xa1Commits);
-      assertEquals(3 * (N + 1), xa2Commits);
-      assertEquals(2 * (N + 1), xa3Commits);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashAfterDistributedTxCommittedIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,70 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashAfterDistributedTxCommittedIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashAfterDistributedTxCommittedIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashAfterDistributedTxCommittedIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      log.info("Commits after recovery: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-
-      assertEquals(3 * (N + 1), xa1Commits);
-      assertEquals(3 * (N + 1), xa2Commits);
-      assertEquals(2 * (N + 1), xa3Commits);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashAfterDistributedTxCommittedIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,70 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashAfterDistributedTxCommittedJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashAfterDistributedTxCommittedJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashAfterDistributedTxCommittedJBRemIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      log.info("Commits after recovery: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-
-      assertEquals(3 * (N + 1), xa1Commits);
-      assertEquals(3 * (N + 1), xa2Commits);
-      assertEquals(2 * (N + 1), xa3Commits);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashAfterDistributedTxCommittedJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterDistributedTxCommittedTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,70 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashAfterDistributedTxCommittedTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashAfterDistributedTxCommittedTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashAfterDistributedTxCommittedTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      log.info("Commits after recovery: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-
-      assertEquals(3 * (N + 1), xa1Commits);
-      assertEquals(3 * (N + 1), xa2Commits);
-      assertEquals(2 * (N + 1), xa3Commits);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashAfterDistributedTxCommittedTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterOneResourceButNotAllHaveCommittedTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterOneResourceButNotAllHaveCommittedTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterOneResourceButNotAllHaveCommittedTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,71 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashAfterOneResourceButNotAllHaveCommittedTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashAfterOneResourceButNotAllHaveCommittedTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashAfterOneResourceButNotAllHaveCommittedTestCase(
-                                                                  String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      log.info("Commits after recovery: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-
-      assertEquals(N + 1, xa1Commits);
-      assertEquals(N + 1, xa2Commits);
-      assertEquals(N + 1, xa3Commits);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashAfterOneResourceButNotAllHaveCommittedTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterOneResourceButNotAllHavePreparedTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterOneResourceButNotAllHavePreparedTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterOneResourceButNotAllHavePreparedTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,89 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashAfterOneResourceButNotAllHavePreparedTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashAfterOneResourceButNotAllHavePreparedTestCase
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashAfterOneResourceButNotAllHavePreparedTestCase(
-                                                                  String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-      
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-
-      int xa1Prepares = xaRes1.getPreparedCount();
-      int xa2Prepares = xaRes2.getPreparedCount();
-      int xa3Prepares = xaRes3.getPreparedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after crash: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-      log.info("Prepares after crash: " + xa1Prepares + ", " 
-            + xa2Prepares + ", " + xa3Prepares);
-      log.info("Rollbacks after crash: " + xa1Rollbacks + ", " 
-            + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(N, xa1Commits);
-      assertEquals(N, xa2Commits);
-      assertEquals(N, xa3Commits);
-      assertEquals(N + 1, xa1Prepares);
-      assertEquals(N, xa2Prepares);
-      assertEquals(N, xa3Prepares);
-      assertEquals(1, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashAfterOneResourceButNotAllHavePreparedTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterTxCommittedTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterTxCommittedTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterTxCommittedTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,70 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashAfterTxCommittedTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashAfterTxCommittedTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashAfterTxCommittedTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      log.info("Commits after recovery: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-
-      assertEquals(N + 1, xa1Commits);
-      assertEquals(N + 1, xa2Commits);
-      assertEquals(N + 1, xa3Commits);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashAfterTxCommittedTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,100 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public 
-   RecoveryFromCrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase(
-                                                                  String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      log.info("Commits after recovery: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-
-      assertEquals(N + 1, xa1Commits);
-      assertEquals(N, xa2Commits);
-      assertEquals(N + 1, xa3Commits);
-      
-      xa1Commits = xaRes1.getCommittedCount();
-      xa2Commits = xaRes2.getCommittedCount();
-      xa3Commits = xaRes3.getCommittedCount();
-      
-      Thread.sleep(5000);
-
-      log.info("Commits after failed retry timeout: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-
-      assertEquals(N + 1, xa1Commits);
-      assertEquals(N, xa2Commits);
-      assertEquals(N + 1, xa3Commits);
-      
-      xaRes2.clearCommitErrorCode();
-      Thread.sleep(5000);
-
-      xa1Commits = xaRes1.getCommittedCount();
-      xa2Commits = xaRes2.getCommittedCount();
-      xa3Commits = xaRes3.getCommittedCount();
-      
-      log.info("Commits after another retry timeout: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-
-      assertEquals(N + 1, xa1Commits);
-      assertEquals(N + 1, xa2Commits);
-      assertEquals(N + 1, xa3Commits);
-   }
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashAfterTxCommittedWithFailedXARetryAtRecoveryTimeTestCase.class);
-   }
-
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,72 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public 
-   RecoveryFromCrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase(
-                                                                  String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      log.info("Commits after recovery: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-
-      assertEquals(N + 1, xa1Commits);
-      assertEquals(N + 1, xa2Commits);
-      assertEquals(N + 1, xa3Commits);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashAfterTxCommittedWithSuccessfulXARetryAtRecoveryTimeTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,79 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashBeforeDistributedTxCommittedIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashBeforeDistributedTxCommittedIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashBeforeDistributedTxCommittedIIOPJBRemTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery: " + xa1Rollbacks + ", " 
-            + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashBeforeDistributedTxCommittedIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,79 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashBeforeDistributedTxCommittedIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashBeforeDistributedTxCommittedIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashBeforeDistributedTxCommittedIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery: " + xa1Rollbacks + ", " 
-            + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashBeforeDistributedTxCommittedIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,79 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashBeforeDistributedTxCommittedJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashBeforeDistributedTxCommittedJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashBeforeDistributedTxCommittedJBRemIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery: " + xa1Rollbacks + ", " 
-            + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashBeforeDistributedTxCommittedJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeDistributedTxCommittedTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,79 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashBeforeDistributedTxCommittedTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashBeforeDistributedTxCommittedTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashBeforeDistributedTxCommittedTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery: " + xa1Rollbacks + ", " 
-            + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashBeforeDistributedTxCommittedTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeTxCommittedTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeTxCommittedTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashBeforeTxCommittedTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,79 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashBeforeTxCommittedTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashBeforeTxCommittedTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashBeforeTxCommittedTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery: " + xa1Commits + ", " 
-            + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery: " + xa1Rollbacks + ", " 
-            + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(N, xa1Commits);
-      assertEquals(N, xa2Commits);
-      assertEquals(N, xa3Commits);
-      assertEquals(1, xa1Rollbacks);
-      assertEquals(1, xa2Rollbacks);
-      assertEquals(1, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashBeforeTxCommittedTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,79 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(N + 1, xa1Commits);
-      assertEquals(N + 1, xa2Commits);
-      assertEquals(N + 1, xa3Commits);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,79 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(N + 1, xa1Commits);
-      assertEquals(N + 1, xa2Commits);
-      assertEquals(N + 1, xa3Commits);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceAfterPrepareIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,79 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(N + 1, xa1Commits);
-      assertEquals(N + 1, xa2Commits);
-      assertEquals(N + 1, xa3Commits);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceAfterPrepareJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceAfterPrepareTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,79 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceAfterPrepareTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceAfterPrepareTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfFirstRemoteResourceAfterPrepareTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(N + 1, xa1Commits);
-      assertEquals(N + 1, xa2Commits);
-      assertEquals(N + 1, xa3Commits);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceAfterPrepareTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,84 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Now the pending XA rollbacks should have been performed by the 
-      // recovery procedure of the first remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,84 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Now the pending XA rollbacks should have been performed by the 
-      // recovery procedure of the first remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,84 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Now the pending XA rollbacks should have been performed by the 
-      // recovery procedure of the first remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,84 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Now the pending XA rollbacks should have been performed by the 
-      // recovery procedure of the first remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceBeforeItAnswersPrepareTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,85 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Before crashing, the first remote resource had called prepare on its 
-      // XA resources. Now the pending XA rollbacks should been performed by 
-      // the recovery procedure of the first remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,85 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Before crashing, the first remote resource had called prepare on its 
-      // XA resources. Now the pending XA rollbacks should been performed by 
-      // the recovery procedure of the first remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,85 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Before crashing, the first remote resource had called prepare on its 
-      // XA resources. Now the pending XA rollbacks should been performed by 
-      // the recovery procedure of the first remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,85 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Before crashing, the first remote resource had called prepare on its 
-      // XA resources. Now the pending XA rollbacks should been performed by 
-      // the recovery procedure of the first remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceBeforeItPreparesTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,81 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   public RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testCommittedTx", true);
-
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      int[] balances = frontEnd.getBalancesOverIIOPAndJBRem();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-   
-      getLog().debug("Remove FrontEnd bean");
-      frontEnd.remove();
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,81 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   public RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testCommittedTx", true);
-
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      int[] balances = frontEnd.getBalancesOverIIOP();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-   
-      getLog().debug("Remove FrontEnd bean");
-      frontEnd.remove();
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,81 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   public RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testCommittedTx", true);
-
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      int[] balances = frontEnd.getBalancesOverJBRemAndIIOP();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-   
-      getLog().debug("Remove FrontEnd bean");
-      frontEnd.remove();
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,81 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-
-/**
- * A RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   public RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testCommittedTx", true);
-
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      int[] balances = frontEnd.getBalancesOverJBRem();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-   
-      getLog().debug("Remove FrontEnd bean");
-      frontEnd.remove();
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfFirstRemoteResourceWithXADatabaseAfterPrepareTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,79 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(N + 1, xa1Commits);
-      assertEquals(N + 1, xa2Commits);
-      assertEquals(N + 1, xa3Commits);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,79 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(N + 1, xa1Commits);
-      assertEquals(N + 1, xa2Commits);
-      assertEquals(N + 1, xa3Commits);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceAfterPrepareIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,79 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(N + 1, xa1Commits);
-      assertEquals(N + 1, xa2Commits);
-      assertEquals(N + 1, xa3Commits);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceAfterPrepareJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceAfterPrepareTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,79 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceAfterPrepareTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceAfterPrepareTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfSecondRemoteResourceAfterPrepareTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(N + 1, xa1Commits);
-      assertEquals(N + 1, xa2Commits);
-      assertEquals(N + 1, xa3Commits);
-      assertEquals(0, xa1Rollbacks);
-      assertEquals(0, xa2Rollbacks);
-      assertEquals(0, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceAfterPrepareTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,84 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Now the pending XA rollbacks should have been performed by the 
-      // recovery procedure of the second remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,84 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Now the pending XA rollbacks should have been performed by the 
-      // recovery procedure of the second remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,84 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Now the pending XA rollbacks should have been performed by the 
-      // recovery procedure of the second remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,84 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Now the pending XA rollbacks should have been performed by the 
-      // recovery procedure of the second remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceBeforeItAnswersPrepareTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,85 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Before crashing, the second remote resource had called prepare on its 
-      // XA resources. Now the pending XA rollbacks should been performed by 
-      // the recovery procedure of that remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,85 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Before crashing, the second remote resource had called prepare on its 
-      // XA resources. Now the pending XA rollbacks should been performed by 
-      // the recovery procedure of that remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,85 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Before crashing, the second remote resource had called prepare on its 
-      // XA resources. Now the pending XA rollbacks should been performed by 
-      // the recovery procedure of that remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,85 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.recover.interfaces.DummyXAResource;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   private Logger log = Logger.getLogger(this.getClass());
-
-   public RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      DummyXAResource xaRes1 = getXAResource("DummyRecoverableProxy1"); 
-      DummyXAResource xaRes2 = getXAResource("DummyRecoverableProxy2");
-      DummyXAResource xaRes3 = getXAResource("DummyRecoverableProxy3");
-
-      int xa1Commits = xaRes1.getCommittedCount();
-      int xa2Commits = xaRes2.getCommittedCount();
-      int xa3Commits = xaRes3.getCommittedCount();
-      
-      int xa1Rollbacks = xaRes1.getRollbackCount();
-      int xa2Rollbacks = xaRes2.getRollbackCount();
-      int xa3Rollbacks = xaRes3.getRollbackCount();
-
-      log.info("Commits after recovery of remote resource: " + xa1Commits + 
-               ", " + xa2Commits + ", " + xa3Commits);
-      log.info("Rollbacks after recovery of remote resource: " + xa1Rollbacks +
-               ", " + xa2Rollbacks + ", " + xa3Rollbacks);
-
-      assertEquals(3 * N, xa1Commits);
-      assertEquals(3 * N, xa2Commits);
-      assertEquals(2 * N, xa3Commits);
-      // Before crashing, the second remote resource had called prepare on its 
-      // XA resources. Now the pending XA rollbacks should been performed by 
-      // the recovery procedure of that remote resource:
-      // (3, 3, 2) = (1, 1, 0) /* XA rollbacks driven by the root coordinator */ 
-      //           + (1, 1, 1) /* XA rollbacks driven by the first resource */
-      //           + (1, 1, 1) /* XA rollbacks driven by the second resouce */
-      assertEquals(3, xa1Rollbacks);
-      assertEquals(3, xa2Rollbacks);
-      assertEquals(2, xa3Rollbacks);
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceBeforeItPreparesTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,81 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   public RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testCommittedTx", true);
-
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      int[] balances = frontEnd.getBalancesOverIIOPAndJBRem();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-   
-      getLog().debug("Remove FrontEnd bean");
-      frontEnd.remove();
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPJBRemTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,81 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase 
-      extends JBossCrashRecoveryIIOPTestCase
-{
-   public RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testCommittedTx", true);
-
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      int[] balances = frontEnd.getBalancesOverIIOP();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-   
-      getLog().debug("Remove FrontEnd bean");
-      frontEnd.remove();
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,81 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   public RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testCommittedTx", true);
-
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      int[] balances = frontEnd.getBalancesOverJBRemAndIIOP();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-   
-      getLog().debug("Remove FrontEnd bean");
-      frontEnd.remove();
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareJBRemIIOPTestCase.class);
-   }
-
-}

Deleted: trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase.java	2007-10-03 22:40:23 UTC (rev 65819)
+++ trunk/testsuite/src/main/org/jboss/test/recover/test/RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase.java	2007-10-03 22:52:26 UTC (rev 65820)
@@ -1,81 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.test.recover.test;
-
-import javax.naming.Context;
-import javax.rmi.PortableRemoteObject;
-import javax.transaction.UserTransaction;
-
-import junit.framework.Test;
-
-import org.jboss.test.recover.interfaces.FrontEnd;
-import org.jboss.test.recover.interfaces.FrontEndHome;
-
-/**
- * A RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase.
- * 
- * @author <a href="reverbel at ime.usp.br">Francisco Reverbel</a>
- * @version $Revision$
- */
-public class RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase 
-      extends JBossCrashRecoveryTestCase
-{
-   public RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase(String name)
-   {
-      super(name);
-   }
-   
-   public void test() throws Exception
-   {
-      log.info("*** starting " + getUnqualifiedClassName() + " ***");
-      
-      Context ctx  = getInitialContext();
-
-      getLog().debug("Obtain UserTransaction instance");
-      UserTransaction userTx = (UserTransaction) ctx.lookup("UserTransaction");
-   
-      getLog().debug("Obtain home interface");
-      Object objref = ctx.lookup("dtmrecoverytest/FrontEndEJB");
-      FrontEndHome home =
-         (FrontEndHome) PortableRemoteObject.narrow(objref, FrontEndHome.class);
-      
-      getLog().debug("Create FrontEnd bean");
-      FrontEnd frontEnd = home.create("testCommittedTx", true);
-
-      getLog().debug("Check updated balances");
-      userTx.begin();
-      int[] balances = frontEnd.getBalancesOverJBRem();
-      userTx.commit();
-   
-      assertTrue("first balance == 201", balances[0] == 201);
-      assertTrue("second balance == 202", balances[1] == 202);
-   
-      getLog().debug("Remove FrontEnd bean");
-      frontEnd.remove();
-   } 
-   
-   public static Test suite() throws Exception
-   {
-      return suite(RecoveryFromCrashOfSecondRemoteResourceWithXADatabaseAfterPrepareTestCase.class);
-   }
-
-}




More information about the jboss-cvs-commits mailing list