Package org.jbpm.pvm.internal.tx

Examples of org.jbpm.pvm.internal.tx.StandardTransaction


    } else {
      if (log.isTraceEnabled()) log.trace("creating hibernate session");
      session = sessionFactory.openSession();
    }
   
    StandardTransaction standardTransaction = environment.get(StandardTransaction.class);
    if (standardTransaction!=null) {
      HibernateSessionResource hibernateSessionResource = new HibernateSessionResource(session);
      standardTransaction.enlistResource(hibernateSessionResource);
    }

    return session;
  }
View Full Code Here


    IdentitySessionFactory identitySessionFactory = Environment.getFromCurrent(IdentitySessionFactory.class);
    try {
      IdentitySession identitySession = identitySessionFactory.createIdentitySession(realmName);
     
      Environment environment = Environment.getCurrent();
        StandardTransaction transaction = environment.get(StandardTransaction.class);
        if (transaction != null) {
          IdentitySessionResource identitySessionResource = new IdentitySessionResource(identitySession);
          transaction.enlistResource(identitySessionResource);
        }
       
    return new JBossIdmIdentitySessionImpl(identitySession);
  } catch (IdentityException e) {
    throw new JbpmException("couldn't create the identity session for realm [" + realmName + "]");
View Full Code Here

         || (! (object instanceof StandardTransaction))
       ) {
      throw new WireException("couldn't find "+StandardTransaction.class.getName()+" "+(transactionName!=null ? "'"+transactionName+"'" : "by type")+" to enlist resource "+target);
    }

    StandardTransaction standardTransaction = (StandardTransaction) object;

    log.trace("enlisting resource "+target+" with transaction");
    standardTransaction.enlistResource((StandardResource)target);
  }
View Full Code Here

    IdentitySessionFactory identitySessionFactory = EnvironmentImpl.getFromCurrent(IdentitySessionFactory.class);
    try {
      IdentitySession identitySession = identitySessionFactory.createIdentitySession(realmName);
     
      EnvironmentImpl environment = EnvironmentImpl.getCurrent();
        StandardTransaction transaction = environment.get(StandardTransaction.class);
        if (transaction != null) {
          IdentitySessionResource identitySessionResource = new IdentitySessionResource(identitySession);
          transaction.enlistResource(identitySessionResource);
        }
       
    return new JBossIdmIdentitySessionImpl(identitySession);
  } catch (IdentityException e) {
    throw new JbpmException("couldn't create the identity session for realm [" + realmName + "]");
View Full Code Here

    } else {
      if (log.isTraceEnabled()) log.trace("creating hibernate session");
      session = sessionFactory.openSession();
    }
   
    StandardTransaction standardTransaction = environment.get(StandardTransaction.class);
    if (standardTransaction!=null) {
      HibernateSessionResource hibernateSessionResource = new HibernateSessionResource(session);
      standardTransaction.enlistResource(hibernateSessionResource);
    }

    return session;
  }
View Full Code Here

         || (! (object instanceof StandardTransaction))
       ) {
      throw new WireException("couldn't find "+StandardTransaction.class.getName()+" "+(transactionName!=null ? "'"+transactionName+"'" : "by type")+" to enlist resource "+target);
    }

    StandardTransaction standardTransaction = (StandardTransaction) object;

    log.trace("enlisting resource "+target+" with transaction");
    standardTransaction.enlistResource((StandardResource)target);
  }
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.internal.tx.StandardTransaction

Copyright © 2018 www.massapicom. 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.