Examples of commit()


Examples of org.jboss.narayana.blacktie.jatmibroker.jab.JABTransaction.commit()

    JABTransaction transaction = startTx();
    Response response = connection.tpcall("TxEchoService", buffer, 0);
    String responseData = new String(
        ((X_OCTET) response.getBuffer()).getByteArray());
    transaction.commit();
    assertEquals("test=test1,tx=true", responseData);
  }

  public void test2() throws ConnectionException, JABException {
    log.info("TxBlacktieServiceTestCase::test2");

Examples of org.jboss.narayana.blacktie.jatmibroker.jab.factory.Transaction.commit()

      JABBuffer b = new JABBuffer();
      b.setValue("X_OCTET", message.getBytes());
      log.info("Calling call with input: " + message);
      JABResponse call = c.call("FOOAPP", b, t, "X_OCTET", null);
      log.info("Called call with output: " + call.getValue("X_OCTET"));
      t.commit();
      jcf.closeConnection("connection");
    } catch (JABException e) {
      log.error("JAB error: " + e.getMessage(), e);
    }
  }

Examples of org.jboss.security.authorization.AuthorizationModule.commit()

   {
      int length = modules.size();
      for(int i = 0; i < length; i++)
      {
         AuthorizationModule module = (AuthorizationModule)modules.get(i);
         boolean bool = module.commit();
         if(!bool)
            throw new AuthorizationException("commit on modules failed:"+module.getClass());
      }
      modules.clear();
   }

Examples of org.jboss.soa.esb.helpers.persist.JdbcCleanConn.commit()

    {
      oConn = createJdbcCleanConnection();
      ps = oConn.prepareStatement(getInsertStmt());
      oConn.execUpdWait(ps, 3); // TODO the executeUpdate routine doesn't check return code, which could mask a problem https://jira.jboss.org/jira/browse/SOA-642                 
      // TODO the executeUpdate routine doesn't check return code, which could mask a problem https://jira.jboss.org/jira/browse/SOA-642
      oConn.commit();
    }
    catch( SQLException e)
    {
      final String errorMsg = "SqlException while trying to notify table. Insert statement : " + getInsertStmt();
      log.error( errorMsg , e );

Examples of org.jboss.test.cluster.invokerha.InvokerHaTransactionalMockUtils.MockUserTransaction.commit()

         createNewProxies(0, policyClass, true);

         UserTransaction ut = new MockUserTransaction(clientUserTransactionProxy, infrastructure);
         ut.begin();
         performTransactionalStickyCalls(3, null, policyClass, newProxiesInBetweenTransactions);
         ut.commit();
         /* either set would do because they should be the same */
         Set<Object> chosenTargetsTx1 = chosenTargets;;
        
         if (newProxiesInBetweenTransactions)
         {

Examples of org.jboss.test.jca.adapter.TestConnection.commit()

      assertNotNull(c);
      try
      {
         c.begin();
         assertEquals(TestManagedConnection.LOCAL_TRANSACTION, c.getLocalState());
         c.commit();
         assertEquals(TestManagedConnection.LOCAL_COMMITTED, c.getLocalState());
      }
      finally
      {
         c.close();

Examples of org.jfree.report.flow.EmptyReportTarget.commit()

        final LayoutController parent = lc.getParent();
        lc = parent.join(lc.getFlowController());
      }
    }

    target.commit();
    final PrecomputeNode precomputeNode = pcvr.currentNode();
    final Object functionResult = precomputeNode.getFunctionResult(expressionPosition);
    pcvr.finishElementPrecomputation(nodeKey);
    return functionResult;
//    throw new IllegalStateException

Examples of org.jfree.report.flow.LibLayoutReportTarget.commit()

    // lets generate something ...

    while (position.isAdvanceable())
    {
      position = position.advance(target);
      target.commit();

      // else check whether this state is finished, and try to join the subflow
      // with the parent.
      while (position.isAdvanceable() == false &&
             position.getParent() != null)

Examples of org.jfree.report.flow.ReportTarget.commit()

        final LayoutController parent = lc.getParent();
        lc = parent.join(lc.getFlowController());
      }
    }

    target.commit();
    final PrecomputeNode precomputeNode = pcvr.currentNode();
    final Object functionResult = precomputeNode.getFunctionResult(expressionPosition);
    pcvr.finishElementPrecomputation(nodeKey);
    return functionResult;
//    throw new IllegalStateException

Examples of org.jooq.TransactionProvider.commit()

        TransactionProvider provider = ctx.configuration().transactionProvider();

        try {
            provider.begin(ctx);
            result = transactional.run(ctx.configuration());
            provider.commit(ctx);
        }
        catch (Exception cause) {
            try {
                provider.rollback(ctx.cause(cause));
            }
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.