Examples of retrieveTransactionManager()


Examples of org.hibernate.service.jta.platform.spi.JtaPlatform.retrieveTransactionManager()

   * @param sessionFactory the SessionFactory to provide current Sessions for
   */
  public SpringSessionContext(SessionFactoryImplementor sessionFactory) {
    this.sessionFactory = sessionFactory;
    JtaPlatform jtaPlatform = sessionFactory.getServiceRegistry().getService(JtaPlatform.class);
    TransactionManager transactionManager = jtaPlatform.retrieveTransactionManager();
    this.jtaSessionContext = (transactionManager != null ? new SpringJtaSessionContext(sessionFactory) : null);
  }


  /**
 
View Full Code Here

Examples of org.hibernate.service.jta.platform.spi.JtaPlatform.retrieveTransactionManager()

    super(coordinator);
    final JtaPlatform jtaPlatform = coordinator
          .getTransactionContext()
          .getTransactionEnvironment()
          .getJtaPlatform();
    this.transactionManager = jtaPlatform.retrieveTransactionManager();
  }


  @Override
  protected void doBegin() {
View Full Code Here

Examples of org.hibernate.service.jta.platform.spi.JtaPlatform.retrieveTransactionManager()

          .getTransactionEnvironment()
          .getJtaPlatform();
      if ( jtaPlatform == null ) {
        throw new TransactionException( "Unable to check transaction status" );
      }
      if ( jtaPlatform.retrieveTransactionManager() != null ) {
        return JtaStatusHelper.isActive( jtaPlatform.retrieveTransactionManager().getStatus() );
      }
      else {
        final UserTransaction ut = jtaPlatform.retrieveUserTransaction();
        return ut != null && JtaStatusHelper.isActive( ut );
View Full Code Here

Examples of org.hibernate.service.jta.platform.spi.JtaPlatform.retrieveTransactionManager()

          .getJtaPlatform();
      if ( jtaPlatform == null ) {
        throw new TransactionException( "Unable to check transaction status" );
      }
      if ( jtaPlatform.retrieveTransactionManager() != null ) {
        return JtaStatusHelper.isActive( jtaPlatform.retrieveTransactionManager().getStatus() );
      }
      else {
        final UserTransaction ut = jtaPlatform.retrieveUserTransaction();
        return ut != null && JtaStatusHelper.isActive( ut );
      }
View Full Code Here

Examples of org.hibernate.service.jta.platform.spi.JtaPlatform.retrieveTransactionManager()

  }

  @Override
  public Session currentSession() throws HibernateException {
    final JtaPlatform jtaPlatform = factory().getServiceRegistry().getService( JtaPlatform.class );
    final TransactionManager transactionManager = jtaPlatform.retrieveTransactionManager();
    if ( transactionManager == null ) {
      throw new HibernateException( "No TransactionManagerLookup specified" );
    }

    Transaction txn;
View Full Code Here

Examples of org.hibernate.service.jta.platform.spi.JtaPlatform.retrieveTransactionManager()

          .getTransactionEnvironment()
          .getJtaPlatform();
      if ( jtaPlatform == null ) {
        throw new TransactionException( "Unable to check transaction status" );
      }
      if ( jtaPlatform.retrieveTransactionManager() != null ) {
        return JtaStatusHelper.isActive( jtaPlatform.retrieveTransactionManager().getStatus() );
      }
      else {
        final UserTransaction ut = jtaPlatform.retrieveUserTransaction();
        return ut != null && JtaStatusHelper.isActive( ut );
View Full Code Here

Examples of org.hibernate.service.jta.platform.spi.JtaPlatform.retrieveTransactionManager()

          .getJtaPlatform();
      if ( jtaPlatform == null ) {
        throw new TransactionException( "Unable to check transaction status" );
      }
      if ( jtaPlatform.retrieveTransactionManager() != null ) {
        return JtaStatusHelper.isActive( jtaPlatform.retrieveTransactionManager().getStatus() );
      }
      else {
        final UserTransaction ut = jtaPlatform.retrieveUserTransaction();
        return ut != null && JtaStatusHelper.isActive( ut );
      }
View Full Code Here

Examples of org.hibernate.service.jta.platform.spi.JtaPlatform.retrieveTransactionManager()

  /**
   * {@inheritDoc}
   */
  public Session currentSession() throws HibernateException {
    final JtaPlatform jtaPlatform = factory.getServiceRegistry().getService( JtaPlatform.class );
    final TransactionManager transactionManager = jtaPlatform.retrieveTransactionManager();
    if ( transactionManager == null ) {
      throw new HibernateException( "No TransactionManagerLookup specified" );
    }

    Transaction txn;
View Full Code Here

Examples of org.hibernate.service.jta.platform.spi.JtaPlatform.retrieveTransactionManager()

  }

  @Override
  public Session currentSession() throws HibernateException {
    final JtaPlatform jtaPlatform = factory.getServiceRegistry().getService( JtaPlatform.class );
    final TransactionManager transactionManager = jtaPlatform.retrieveTransactionManager();
    if ( transactionManager == null ) {
      throw new HibernateException( "No TransactionManagerLookup specified" );
    }

    Transaction txn;
View Full Code Here

Examples of org.hibernate.service.jta.platform.spi.JtaPlatform.retrieveTransactionManager()

  }

  @Override
  public Session currentSession() throws HibernateException {
    final JtaPlatform jtaPlatform = factory.getServiceRegistry().getService( JtaPlatform.class );
    final TransactionManager transactionManager = jtaPlatform.retrieveTransactionManager();
    if ( transactionManager == null ) {
      throw new HibernateException( "No TransactionManagerLookup specified" );
    }

    Transaction txn;
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.