Examples of Commit()


Examples of org.jaudiotagger.audio.mp3.MP3File.commit()

                ID3v11Tag id3v1Tag = new ID3v11Tag(id3v2tag);
                mp3File.setID3v1Tag(id3v1Tag);
                mp3File.setID3v2Tag(id3v2tag);

                mp3File.commit();
            } catch (Exception e) {
                throw new TagWriteException(e);
            }
        }
    }

Examples of org.jboss.as.controller.ControllerTransaction.commit()

        } catch (OperationFailedException ofe) {
            transaction.setRollbackOnly();
            throw ofe;
        } finally {
            transaction.commit();
        }

    }

    @Override

Examples of org.jboss.as.demos.ejb3.archive.BMTStatefulBean.commit()

    public String call() throws Exception {
        InitialContext ctx = new InitialContext();
        String name = "java:global/ejb3-example/BMTStatefulBean!" + BMTStatefulBean.class.getName();
        BMTStatefulBean bean = (BMTStatefulBean) ctx.lookup(name);
        bean.setup("42");
        return bean.commit();
    }
}

Examples of org.jboss.cache.loader.CacheLoader.commit()

      loader.prepare(txnKey, mods, false);
      //      try {
      //         checkModifications(mods);
      //         // fail("Expected lock timeout");
      //      } catch (DeadlockException expected) {}
      loader.commit(txnKey);
      addDelay();
      checkModifications(mods);
   }

   /**
 

Examples of org.jboss.cache.transaction.DummyTransactionManager.commit()

      DummyTransactionManager mgr = DummyTransactionManager.getInstance();

      // put something in the cache
      mgr.begin();
      cache.put(fqn, key, value);
      mgr.commit();

      // should be nothing in the loader
      assertEquals(value, cache.get(fqn, key));
      assertNull(loader.get(fqn));

Examples of org.jboss.forge.addon.resource.transaction.ResourceTransaction.commit()

      ResourceTransaction transaction = resourceFactory.getTransaction();
      if (!transaction.isStarted())
      {
         return Results.fail("Resource Transaction is not started");
      }
      transaction.commit();
      return Results.success();
   }

}

Examples of org.jboss.jms.client.JBossSession.commit()

    */
   public void testEmptyCommit() throws Exception
   {
      Connection conn = cf.createConnection();
      JBossSession session = (JBossSession)conn.createSession(true, Session.SESSION_TRANSACTED);
      session.commit();
      conn.close();
   }

   /**
    * This test was created as per http://jira.jboss.org/jira/browse/JBMESSAGING-696.

Examples of org.jboss.jms.tx.MessagingXAResource.commit()

         assertTrue(rmSizeBeforeStart + 1 == rmAfter);
         res1.start(xid, XAResource.TMJOIN);
         res1.end(xid, XAResource.TMSUCCESS);
         rmAfter = rm.size();
         assertTrue(rmSizeBeforeStart + 1 == rmAfter);
         res1.commit(xid, true);
         rmAfter = rm.size();
         assertTrue(rmSizeBeforeStart == rmAfter);
      }
      finally
      {

Examples of org.jboss.messaging.core.impl.tx.Transaction.commit()

         {
            if (trace) { log.trace(this + " received ONE_PHASE_COMMIT request"); }

            Transaction tx = tr.createTransaction();
            processTransaction(request.getState(), tx, checkForDuplicates);
            tx.commit();
         }
         else if (request.getRequestType() == TransactionRequest.TWO_PHASE_PREPARE_REQUEST)
         {
            if (trace) { log.trace(this + " received TWO_PHASE_COMMIT prepare request"); }

Examples of org.jboss.messaging.core.tx.Transaction.commit()

               "The message will be removed");
           
            del.acknowledge(tx);
         }            
        
         tx.commit();        
      }
      catch (Throwable t)
      {
         tx.rollback();
         throw t;
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.