Examples of TransactionListener


Examples of org.apache.jackrabbit.webdav.jcr.transaction.TransactionListener

     */
    public void afterCommit(TransactionResource resource, String lockToken, boolean success) {
        List transactionListeners = (List) transactionListenerById.remove(lockToken);
        if (transactionListeners != null) {
            for (Iterator it = transactionListeners.iterator(); it.hasNext(); ) {
                TransactionListener txListener = (TransactionListener) it.next();
                txListener.afterCommit(resource, lockToken, success);
            }
        }
    }
View Full Code Here

Examples of org.apache.openjpa.event.TransactionListener

        endTx(kpm);

        System.out.println("Baseline, starting memory ");
        reportMemory();

        TransactionListener l = new AbstractTransactionListener() {
            public void afterCommit(TransactionEvent ev) {
                System.out.println(
                    "My Listener in afterCommit");
                System.out.println(
                    "Num objects in transaction "
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cfg.TransactionListener

    if (entityManager == null) {
      entityManager = getEntityManagerFactory().createEntityManager();
     
      if(handleTransactions) {
        // Add transaction listeners, if transactions should be handled
        TransactionListener jpaTransactionCommitListener = new TransactionListener() {
          public void execute(CommandContext commandContext) {
            if (isTransactionActive()) {
              entityManager.getTransaction().commit();
            }
          }
        };
       
        TransactionListener jpaTransactionRollbackListener = new TransactionListener() {
          public void execute(CommandContext commandContext) {
            if (isTransactionActive()) {
              entityManager.getTransaction().rollback();
            }
          }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cfg.TransactionListener

  }

  protected void hintJobExecutor(JobEntity job) {
    JobExecutor jobExecutor = Context.getProcessEngineConfiguration().getJobExecutor();
    JobExecutorContext jobExecutorContext = Context.getJobExecutorContext();
    TransactionListener transactionListener = null;
    if(!job.isSuspended()
            && job.isExclusive()
            && jobExecutorContext != null
            && jobExecutorContext.isExecutingExclusiveJob()) {
      // lock job & add to the queue of the current processor
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cfg.TransactionListener

  }

  protected void hintJobExecutor(JobEntity job) {
    JobExecutor jobExecutor = Context.getProcessEngineConfiguration().getJobExecutor();
    JobExecutorContext jobExecutorContext = Context.getJobExecutorContext();
    TransactionListener transactionListener = null;
    if(!job.isSuspended()
            && job.isExclusive()
            && jobExecutorContext != null
            && jobExecutorContext.isExecutingExclusiveJob()) {
      // lock job & add to the queue of the current processor
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cfg.TransactionListener

    if (entityManager == null) {
      entityManager = getEntityManagerFactory().createEntityManager();
     
      if(handleTransactions) {
        // Add transaction listeners, if transactions should be handled
        TransactionListener jpaTransactionCommitListener = new TransactionListener() {
          public void execute(CommandContext commandContext) {
            if (isTransactionActive()) {
              entityManager.getTransaction().commit();
            }
          }
        };
       
        TransactionListener jpaTransactionRollbackListener = new TransactionListener() {
          public void execute(CommandContext commandContext) {
            if (isTransactionActive()) {
              entityManager.getTransaction().rollback();
            }
          }
View Full Code Here

Examples of org.uengine.kernel.TransactionListener

      pd.setName(name);
      pd.getImplementationObject().setKeyField("DEFID");

      pd.select();
      if(!pd.next()) throw new UEngineException("No Such Process Definition named '" + name +"'.");
      tc.addTransactionListener(new TransactionListener(){

        public void beforeCommit(TransactionContext tx) throws Exception {
          pd.getImplementationObject().setTableName("bpm_procdef");
          pd.getImplementationObject().createUpdateSql();
          pd.update();
View Full Code Here

Examples of org.uengine.kernel.TransactionListener

      pd.setObjType(objType);
      pd.getImplementationObject().setKeyField("DEFID");

      pd.select();
      if(!pd.next()) throw new UEngineException("No Such Process Definition named '" + name +"'.");
      tc.addTransactionListener(new TransactionListener(){

        public void beforeCommit(TransactionContext tx) throws Exception {
          pd.getImplementationObject().setTableName("bpm_procdef");
          pd.getImplementationObject().createUpdateSql();
          pd.update();
View Full Code Here

Examples of org.uengine.kernel.TransactionListener

      pd.setAlias(alias);
      pd.getImplementationObject().setKeyField("DEFID");

      pd.select();
      if(!pd.next()) throw new UEngineException("No Such Process Definition aliased '" + alias +"'.");
      tc.addTransactionListener(new TransactionListener(){

        public void beforeCommit(TransactionContext tx) throws Exception {
          pd.getImplementationObject().setTableName("bpm_procdef");
          pd.getImplementationObject().createUpdateSql();
          pd.update();
View Full Code Here

Examples of org.uengine.kernel.TransactionListener

     
      ArrayList proxyList = new DAO2ArrayListAdapter(pd);
     
      pd.getImplementationObject().setTableName("BPM_PROCDEFVER");
      pd.getImplementationObject().setKeyField("DEFVERID");
      tc.addTransactionListener(new TransactionListener(){

        public void beforeCommit(TransactionContext tx) throws Exception {
          pd.getImplementationObject().createUpdateSql();
          pd.update();
        }
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.