Examples of activated()


Examples of com.arjuna.ats.internal.jta.transaction.arjunacore.jca.SubordinateTransaction.activated()

            if (subordinateTransaction == null) {
                throw new XAException(XAException.XAER_INVAL);
            }

            if (subordinateTransaction.activated()) {
                if (this.onePhaseCommit) {
                    subordinateTransaction.doOnePhaseCommit();
                } else {
                    subordinateTransaction.doCommit();
                }
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.arjunacore.jca.SubordinateTransaction.activated()

            if (subordinateTransaction == null) {
                throw new XAException(XAException.XAER_INVAL);
            }

            if (subordinateTransaction.activated()) {
                subordinateTransaction.doRollback();
                // remove the imported tx
                SubordinationManager.getTransactionImporter().removeImportedTransaction(xid);
            } else {
                throw new XAException(XAException.XA_RETRY);
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.TransactionImple.activated()

      TransactionImple tx = TxImporter.getImportedTransaction(xid);

      if (tx == null)
        throw new XAException(XAException.XAER_INVAL);

      if (tx.activated())
      {
        if (onePhase)
          tx.doOnePhaseCommit();
        else
          tx.doCommit();
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.TransactionImple.activated()

      TransactionImple tx = TxImporter.getImportedTransaction(xid);

      if (tx == null)
        throw new XAException(XAException.XAER_INVAL);

      if (tx.activated())
      {
        tx.doRollback();

        TxImporter.removeImportedTransaction(xid);
      }
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.jca.TransactionImple.activated()

        .get(new XidImple(xid));

    if (tx == null)
      return null;

    if (!tx.activated())
    {
      tx.recover();

      return tx;
    }
View Full Code Here

Examples of com.db4o.events.EventRegistry.activated()

      public void onEvent(Event4 e, EventArgs args) {
        processActivated(args);
      }
    };

    eventRegistry.activated().addListener(activatedListener);
    eventRegistry.created().addListener(createdListener);
    eventRegistry.creating().addListener(creatingListener);
    eventRegistry.updated().addListener(updatedListener);
    eventRegistry.deleting().addListener(deletingListener);
    eventRegistry.deleted().addListener(deletedListener);
View Full Code Here

Examples of com.db4o.events.EventRegistry.activated()

  public ScanAlertRepository(ObjectContainer db, IXmlRepository xmlRepository) {
    this.database = db;
    this.alertFactory = new ScanAlertFactory(xmlRepository);
    this.scanInstanceEventManager = new EventListenerManager();
    final EventRegistry registry = EventRegistryFactory.forObjectContainer(database);
    registry.activated().addListener(new EventListener4<ObjectInfoEventArgs>() {
      @Override
      public void onEvent(Event4<ObjectInfoEventArgs> e, ObjectInfoEventArgs args) {
        final Object ob = args.object();
        if(ob instanceof ScanInstance) {
          final ScanInstance scan = (ScanInstance) ob;
View Full Code Here

Examples of com.db4o.events.EventRegistry.activated()

    this.database = database;
    this.requestLogId = getRequestLogId(database);
    this.cloner = new HttpMessageCloner(database);
    final EventRegistry registry = EventRegistryFactory.forObjectContainer(database);
   
    registry.activated().addListener(new EventListener4<ObjectInfoEventArgs> () {

      @Override
      public void onEvent(Event4<ObjectInfoEventArgs> arg0,  ObjectInfoEventArgs args) {
        final Object ob = args.object();
        if(ob instanceof RequestLogResponse) {
View Full Code Here

Examples of com.db4o.events.EventRegistry.activated()

      public void onEvent(Event4 e, EventArgs args) {
        processActivated(args);
      }
    };

    eventRegistry.activated().addListener(activatedListener);
    eventRegistry.created().addListener(createdListener);
    eventRegistry.creating().addListener(creatingListener);
    eventRegistry.updated().addListener(updatedListener);
    eventRegistry.deleting().addListener(deletingListener);
    eventRegistry.deleted().addListener(deletedListener);
View Full Code Here

Examples of org.eclipse.ui.console.IConsolePageParticipant.activated()

        Object[] participants = listeners.getListeners();
          for (int i = 0; i < participants.length; i++) {
            final IConsolePageParticipant participant = (IConsolePageParticipant) participants[i];
            SafeRunner.run(new ISafeRunnable() {
            public void run() throws Exception {
              participant.activated();
            }
            public void handleException(Throwable exception) {
              ConsolePlugin.log(exception);
              listeners.remove(participant);
            }
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.