Examples of begin()


Examples of javax.resource.cci.LocalTransaction.begin()

    connectionFactoryControl.setReturnValue(connection, 1);

    connection.getLocalTransaction();
    connectionControl.setReturnValue(localTransaction, 1);

    localTransaction.begin();
    localTransactionControl.setVoidCallable(1);

    connection.createInteraction();
    connectionControl.setReturnValue(interaction);
View Full Code Here

Examples of javax.transaction.TransactionManager.begin()

      // now make sure cache2 is in sync with cache1:
      // make sure this is in a tx
      TransactionManager txm = cache2.getTransactionManager();
      assertEquals("value", cache1.get(fqn, "key"));

      txm.begin();
      cache2.put(fqn, "key", "value");
      assertEquals("value", cache2.get(fqn, "key"));
      txm.commit();

      // since the node already exists even PL will not remove it - but will invalidate it's data
View Full Code Here

Examples of javax.transaction.UserTransaction.begin()

   {
     UserTransaction tx =null;
     try
     {
       tx =  (UserTransaction)new InitialContext().lookup("UserTransaction");
       tx.begin();
      
       log.debug("Execute SQL from resource: "+resource);

       URL url = Thread.currentThread().getContextClassLoader().getResource(resource);
      
View Full Code Here

Examples of l2p.gameserver.model.entity.vehicle.L2AirShip.begin()

          AirShipDock curAD = AirShipDocksTable.getInstance().getAirShipDockByNpcId(currentDockNpcId);
          if(curAD.getId() == dockID)
          {
            airship.SetTrajet1(curAD.getDepartureTrajetId(), 0, null, null);
            airship._cycle = 1;
            airship.begin();
          }
          else
          {
            airship.SetTrajet1(curAD.getDepartureTrajetId(), 0, null, null);
            L2VehiclePoint bp = new L2VehiclePoint();
View Full Code Here

Examples of net.sf.ehcache.TransactionController.begin()

    public static void beginTransactionIfNeeded(Ehcache cache) throws CacheException {
        try {
            switch (cache.getCacheConfiguration().getTransactionalMode()) {
                case LOCAL:
                    TransactionController ctrl = cache.getCacheManager().getTransactionController();
                    ctrl.begin();
                    break;

                case XA:
                case XA_STRICT:
                    Object tm = ((net.sf.ehcache.Cache) cache).getTransactionManagerLookup().getTransactionManager();
View Full Code Here

Examples of net.sf.xbus.base.core.TAManager.begin()

    boolean mailReceived = false;
    TAManager taManager = TAManager.getInstance();

    try
    {
      taManager.begin();

      // Subclasses may define their own request content
      Object requestContent = getRequestContent(xbusSystem
          .getCompleteName());
View Full Code Here

Examples of nexj.core.runtime.platform.generic.tx.GenericTransactionManager.begin()

        
         //Transaction Manager Setup
         Transaction txT;
         TransactionManager txM = new GenericTransactionManager();
        
         txM.begin();
         txT = txM.getTransaction();
        
         txT.enlistResource(xar1);
         txT.enlistResource(xar2);
        
View Full Code Here

Examples of oracle.adf.share.logging.ADFLogger.begin()

                           String.valueOf(context.get(BindingProvider.ENDPOINT_ADDRESS_PROPERTY)));
            logContext.put(MessageContext.WSDL_INTERFACE, String.valueOf(context.get(MessageContext.WSDL_INTERFACE)));
            logContext.put(MessageContext.WSDL_OPERATION, String.valueOf(context.get(MessageContext.WSDL_OPERATION)));
            logContext.put(MessageContext.WSDL_PORT, String.valueOf(context.get(MessageContext.WSDL_PORT)));
            logContext.put(MessageContext.WSDL_SERVICE, String.valueOf(context.get(MessageContext.WSDL_SERVICE)));
            logger.begin(perfTimerName(context), logContext);
        } else {
            // start performance timer even when not logging payload
            logger.begin(perfTimerName(context), new HashMap<String, String>());
        }
View Full Code Here

Examples of org.amplafi.flow.impl.FlowStateImpl.begin()

        flowTestingUtils.getFlowTranslatorResolver().resolveFlow(flow);
        flowTestingUtils.getFlowDefinitionsManager().addDefinition(FLOW_TYPE, flow);
        FlowManagement flowManagement = flowTestingUtils.getFlowManagement();

        FlowState fs = new FlowStateImpl(FLOW_TYPE, flowManagement);
        fs.begin();

        assertTrue(fs.hasNext());
        assertTrue(fs.hasVisibleNext());
        assertFalse(fs.hasPrevious());
        assertFalse(fs.hasVisiblePrevious());
View Full Code Here

Examples of org.apache.activemq.transport.stomp.StompConnection.begin()

    StompConnection connection = new StompConnection();
    connection.open("localhost", 61613);
   
    connection.connect("system", "manager");
   
    connection.begin("tx1");
    connection.send("/queue/test", "message1");
    connection.send("/queue/test", "message2");
    connection.commit("tx1");
   
    connection.subscribe("/queue/test", Subscribe.AckModeValues.CLIENT);
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.