Examples of JtaPlatformException


Examples of org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException

      Class transactionManagerServicesClass = serviceRegistry().getService( ClassLoaderService.class ).classForName( TM_CLASS_NAME );
      final Method getTransactionManagerMethod = transactionManagerServicesClass.getMethod( "getTransactionManager" );
      return (TransactionManager) getTransactionManagerMethod.invoke( null );
    }
    catch (Exception e) {
      throw new JtaPlatformException( "Could not locate Bitronix TransactionManager", e );
    }
  }
View Full Code Here

Examples of org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException

        // go on to the next iteration
      }
    }

    if ( webSphereEnvironment == null ) {
      throw new JtaPlatformException( "Could not locate WebSphere TransactionManager access class" );
    }

    this.transactionManagerAccessClass = tmAccessClass;
    this.webSphereEnvironment = webSphereEnvironment;
  }
View Full Code Here

Examples of org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException

    try {
      final Method method = transactionManagerAccessClass.getMethod( "getTransactionManager" );
      return (TransactionManager) method.invoke( null );
    }
    catch (Exception e) {
      throw new JtaPlatformException( "Could not obtain WebSphere TransactionManager", e );
    }

  }
View Full Code Here

Examples of org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException

      final Class tmClass = serviceRegistry().getService( ClassLoaderService.class ).classForName( TM_CLASS_NAME );
      final Method getTransactionManagerMethod = tmClass.getMethod( "getTransactionManager" );
      return (TransactionManager) getTransactionManagerMethod.invoke( null, (Object[]) null );
    }
    catch (Exception e) {
      throw new JtaPlatformException( "Could not obtain JOTM transaction manager instance", e );
    }
  }
View Full Code Here

Examples of org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException

      final Class clazz = Class.forName( TM_CLASS_NAME );
      final Method getTransactionManagerMethod = clazz.getMethod( "getTransactionManager" );
      return (TransactionManager) getTransactionManagerMethod.invoke( null );
    }
    catch (Exception e) {
      throw new JtaPlatformException( "Could not obtain JOnAS transaction manager instance", e );
    }
  }
View Full Code Here

Examples of org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException

          .getService( ClassLoaderService.class )
          .classForName( JBOSS_TM_CLASS_NAME );
      return (TransactionManager) jbossTmClass.getMethod( "transactionManager" ).invoke( null );
    }
    catch ( Exception e ) {
      throw new JtaPlatformException( "Could not obtain JBoss Transactions transaction manager instance", e );
    }
  }
View Full Code Here

Examples of org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException

          .getService( ClassLoaderService.class )
          .classForName( JBOSS_UT_CLASS_NAME );
      return (UserTransaction) jbossUtClass.getMethod( "userTransaction" ).invoke( null );
    }
    catch ( Exception e ) {
      throw new JtaPlatformException( "Could not obtain JBoss Transactions user transaction instance", e );
    }
  }
View Full Code Here

Examples of org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException

  public void registerSynchronization(Synchronization synchronization) {
    try {
      transactionManagerAccess.getTransactionManager().getTransaction().registerSynchronization( synchronization );
    }
    catch (Exception e) {
      throw new JtaPlatformException( "Could not access JTA Transaction to register synchronization", e );
    }
  }
View Full Code Here

Examples of org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException

        // go on to the next iteration
      }
    }

    if ( webSphereEnvironment == null ) {
      throw new JtaPlatformException( "Could not locate WebSphere TransactionManager access class" );
    }

    this.transactionManagerAccessClass = tmAccessClass;
    this.webSphereEnvironment = webSphereEnvironment;
  }
View Full Code Here

Examples of org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformException

    try {
      final Method method = transactionManagerAccessClass.getMethod( "getTransactionManager" );
      return ( TransactionManager ) method.invoke( null );
    }
    catch ( Exception e ) {
      throw new JtaPlatformException( "Could not obtain WebSphere TransactionManager", e );
    }

  }
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.