User: mulder  
  Date: 00/10/21 09:29:28

  Added:       src/main/org/jboss/test/xa/interfaces
                        CantSeeDataException.java XATest.java
                        XATestHome.java
  Log:
  Added a test of 2-phase commit.
  This creates 3 connections across 2 data sources and does work on them
    and commits them together as a 2-phase commit transaction.
  You must create DB Pools "XADataSource1" and "XADataSource2" pointing to
    different DBs, and create a table in each - it'll spew out the table
    create statement if you run it and it can't find the tables.
  
  Revision  Changes    Path
  1.1                  
jbosstest/src/main/org/jboss/test/xa/interfaces/CantSeeDataException.java
  
  Index: CantSeeDataException.java
  ===================================================================
  package org.jboss.test.xa.interfaces;
  
  public class CantSeeDataException extends Exception {
  
      public CantSeeDataException() {
          super();
      }
      public CantSeeDataException(String message) {
          super(message);
      }
  }
  
  
  1.1                  jbosstest/src/main/org/jboss/test/xa/interfaces/XATest.java
  
  Index: XATest.java
  ===================================================================
  package org.jboss.test.xa.interfaces;
  
  import java.rmi.RemoteException;
  import javax.ejb.EJBObject;
  
  public interface XATest extends EJBObject {
      public void clearData() throws RemoteException;
      public void doWork() throws CantSeeDataException, RemoteException;
  }
  
  
  1.1                  jbosstest/src/main/org/jboss/test/xa/interfaces/XATestHome.java
  
  Index: XATestHome.java
  ===================================================================
  package org.jboss.test.xa.interfaces;
  
  import java.rmi.RemoteException;
  import javax.ejb.CreateException;
  import javax.ejb.EJBHome;
  
  public interface XATestHome extends EJBHome {
      public XATest create() throws CreateException, RemoteException;
  }
  
  

Reply via email to