Examples of XAExceptionSession


Examples of org.jboss.test.jca.interfaces.XAExceptionSession

   }

   public void testXAExceptionToTransactionRolledbackException() throws Exception
   {
      XAExceptionSessionHome xh = (XAExceptionSessionHome)getInitialContext().lookup("test/XAExceptionSessionHome");
      XAExceptionSession x = xh.create();
      try
      {
         x.testXAExceptionToTransactionRolledbackException();
      }
      catch (TransactionRolledbackException tre)
      {
         getLog().info("testXAExceptionToRollbackException passed");
         return;
View Full Code Here

Examples of org.jboss.test.jca.interfaces.XAExceptionSession

   }

   public void testRMERRInOnePCToTransactionRolledbackException() throws Exception
   {
      XAExceptionSessionHome xh = (XAExceptionSessionHome)getInitialContext().lookup("test/XAExceptionSessionHome");
      XAExceptionSession x = xh.create();
      try
      {
         x.testRMERRInOnePCToTransactionRolledbackException();
      }
      catch (TransactionRolledbackException tre)
      {
         getLog().info("testXAExceptionToRollbackException passed");
         return;
View Full Code Here

Examples of org.jboss.test.jca.interfaces.XAExceptionSession

   }

   public void testSimulateConnectionError() throws Exception
   {
      XAExceptionSessionHome xh = (XAExceptionSessionHome)getInitialContext().lookup("test/XAExceptionSessionHome");
      XAExceptionSession x = xh.create();
      x.simulateConnectionError();
   }
View Full Code Here

Examples of org.jboss.test.jca.interfaces.XAExceptionSession

   }

   public void testSimulateConnectionErrorWithTwoHandles() throws Exception
   {
      XAExceptionSessionHome xh = (XAExceptionSessionHome)getInitialContext().lookup("test/XAExceptionSessionHome");
      XAExceptionSession x = xh.create();
      x.simulateConnectionErrorWithTwoHandles();
   }
View Full Code Here

Examples of org.jboss.test.jca.interfaces.XAExceptionSession

   }

   public void testGetConnectionResourceError() throws Exception
   {
      XAExceptionSessionHome xh = (XAExceptionSessionHome)getInitialContext().lookup("test/XAExceptionSessionHome");
      XAExceptionSession x = xh.create();
      try
      {
         x.simulateError("getConnectionResource", 10);
      }
      finally
      {
         flushConnections();
      }
View Full Code Here

Examples of org.jboss.test.jca.interfaces.XAExceptionSession

   }

   public void testGetConnectionRuntimeError() throws Exception
   {
      XAExceptionSessionHome xh = (XAExceptionSessionHome)getInitialContext().lookup("test/XAExceptionSessionHome");
      XAExceptionSession x = xh.create();
      try
      {
         x.simulateError("getConnectionRuntime", 10);
      }
      finally
      {
         flushConnections();
      }
View Full Code Here

Examples of org.jboss.test.jca.interfaces.XAExceptionSession

   }

   public void testCreateManagedConnectionResourceError() throws Exception
   {
      XAExceptionSessionHome xh = (XAExceptionSessionHome)getInitialContext().lookup("test/XAExceptionSessionHome");
      XAExceptionSession x = xh.create();
      try
      {
         x.simulateFactoryError("createManagedConnectionResource", 10);
      }
      finally
      {
         flushConnections();
      }
View Full Code Here

Examples of org.jboss.test.jca.interfaces.XAExceptionSession

   }

   public void testCreateManagedConnectionRuntimeError() throws Exception
   {
      XAExceptionSessionHome xh = (XAExceptionSessionHome)getInitialContext().lookup("test/XAExceptionSessionHome");
      XAExceptionSession x = xh.create();
      try
      {
         x.simulateFactoryError("createManagedConnectionRuntime", 10);
      }
      finally
      {
         flushConnections();
      }
View Full Code Here

Examples of org.jboss.test.jca.interfaces.XAExceptionSession

   }

   public void testMatchManagedConnectionResourceError() throws Exception
   {
      XAExceptionSessionHome xh = (XAExceptionSessionHome)getInitialContext().lookup("test/XAExceptionSessionHome");
      XAExceptionSession x = xh.create();
      try
      {
         x.simulateFactoryError("matchManagedConnectionResource", 10);
      }
      finally
      {
         flushConnections();
      }
View Full Code Here

Examples of org.jboss.test.jca.interfaces.XAExceptionSession

   }

   public void testMatchManagedConnectionRuntimeError() throws Exception
   {
      XAExceptionSessionHome xh = (XAExceptionSessionHome)getInitialContext().lookup("test/XAExceptionSessionHome");
      XAExceptionSession x = xh.create();
      try
      {
         x.simulateFactoryError("matchManagedConnectionRuntime", 10);
      }
      finally
      {
         flushConnections();
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.