Examples of begin()


Examples of atg.dtm.TransactionDemarcation.begin()

        final TransactionDemarcation td = new TransactionDemarcation();
        assertNotNull(td);

        try {
            // Start a new transaction
            td.begin(songsRepository.getTransactionManager());
            // Create a new artist
            MutableRepositoryItem artist = songsRepository.createItem("artist");
            artist.setPropertyValue("name", "joe");
            // Persist to the repository
            songsRepository.addItem(artist);
View Full Code Here

Examples of bitronix.tm.BitronixTransactionManager.begin()

        } catch (InvalidTransactionException ex) {
            assertEquals("resumed transaction cannot be null", ex.getMessage());
        }

        if (log.isDebugEnabled()) log.debug("*** before begin");
        tm.begin();
        if (log.isDebugEnabled()) log.debug("*** after begin");

        if (log.isDebugEnabled()) log.debug("*** getting connection from DS1");
        Connection connection1 = poolingDataSource1.getConnection();
        connection1.createStatement();
View Full Code Here

Examples of br.gov.frameworkdemoiselle.transaction.Transaction.begin()

  private void initiate(final InvocationContext ic) {
    Transaction transaction = getTransactionContext().getCurrentTransaction();
    TransactionInfo transactionInfo = getTransactionInfo();

    if (!transaction.isActive()) {
      transaction.begin();
      transactionInfo.markAsOwner();
      getLogger().info(getBundle().getString("begin-transaction"));
    }

    transactionInfo.incrementCounter();
View Full Code Here

Examples of ch.qos.logback.core.joran.action.Action.begin()

    while (i.hasNext()) {
      Action action = (Action) i.next();
      // now let us invoke the action. We catch and report any eventual
      // exceptions
      try {
        action.begin(interpretationContext, tagName, atts);
      } catch (ActionException e) {
        skip = (Pattern) pattern.clone();
        cai.addError("ActionException in Action for tag [" + tagName + "]", e);
      } catch (RuntimeException e) {
        skip = (Pattern) pattern.clone();
View Full Code Here

Examples of com.alu.e3.common.transaction.ITransaction.begin()

    // create, begin, rollback
    tx = txMnger.getNewTransaction();
    assertNull(tx.getTransactionId());
    assertNull(txMnger.getTransactionContext());

    tx.begin();
    assertNotNull (tx.getTransactionId());
    assertNotNull (txMnger.getTransactionContext().getTransactionId());
    assertEquals (txMnger.getTransactionContext().getTransactionId(), tx.getTransactionId());

    tx.rollback();
View Full Code Here

Examples of com.arjuna.ats.arjuna.AtomicAction.begin()

        }

        // Create a new JBoss transaction
        AtomicAction tx = new AtomicAction();
        // Allocate space to monitor the transaction, this variable is overriden each time the transaction is used.
        int actionStatus = tx.begin(); // Top level begin

        // If the transaction was successful began
        if (actionStatus == ActionStatus.RUNNING)
        {
            // Enlist the participant
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple.begin()

         MessageConsumer consumer = consumerSess.createConsumer(HornetQServerTestCase.queue1);
         xaConn.start();

         DummyXAResource res = new DummyXAResource();

         mgr.begin();

         tx = mgr.getTransaction();

         tx.enlistResource(res);
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.jts.TransactionManagerImple.begin()

        final LastOnePhaseResource firstResource = new LastOnePhaseResource() ;
        final LastOnePhaseResource secondResource = new LastOnePhaseResource() ;
        final LastOnePhaseResource thirdResource = new LastOnePhaseResource() ;
       
        final TransactionManager tm = new TransactionManagerImple() ;
        tm.begin() ;
        try
        {
            final Transaction tx = tm.getTransaction() ;
            assertTrue("First resource enlisted", tx.enlistResource(firstResource)) ;
            assertTrue("Second resource enlisted", tx.enlistResource(secondResource)) ;
View Full Code Here

Examples of com.arjuna.ats.internal.jts.orbspecific.CurrentImple.begin()

  _value = 0;

  try
  {
      current.begin();

      if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED)
      {
    _value = 0;
View Full Code Here

Examples of com.arjuna.ats.jts.extensions.AtomicTransaction.begin()

      for (int index = 0; index < numberOfCalls; index++)
      {
        AtomicTransaction atomicTransaction = new AtomicTransaction();

        atomicTransaction.begin();

        explicitObject.tran_rollback_writelock(OTS.current().get_control());

        atomicTransaction.rollback();
      }
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.