Package org.jbpm.pvm.internal.tx

Examples of org.jbpm.pvm.internal.tx.StandardTransaction.enlistResource()


    }
   
    StandardTransaction standardTransaction = environment.get(StandardTransaction.class);
    if (standardTransaction!=null) {
      HibernateSessionResource hibernateSessionResource = new HibernateSessionResource(session);
      standardTransaction.enlistResource(hibernateSessionResource);
    }

    return session;
  }
 
View Full Code Here


     
      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

    }

    StandardTransaction standardTransaction = (StandardTransaction) object;

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

  /**
   * Gets the name of the transaction to which the object should be added.
   */
 
View Full Code Here

     
      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

    }
   
    StandardTransaction standardTransaction = environment.get(StandardTransaction.class);
    if (standardTransaction!=null) {
      HibernateSessionResource hibernateSessionResource = new HibernateSessionResource(session);
      standardTransaction.enlistResource(hibernateSessionResource);
    }

    return session;
  }
 
View Full Code Here

    }

    StandardTransaction standardTransaction = (StandardTransaction) object;

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

  /**
   * Gets the name of the transaction to which the object should be added.
   */
 
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.