Package Framework.remoting

Examples of Framework.remoting.RemoteInvocationResultWrapper


            currentTransactions.get(0).currentInvoker = null;
          }
        return new RemoteInvocationResult(e.exception);
      }
      else if (result.getValue() instanceof RemoteInvocationResultWrapper) {
        RemoteInvocationResultWrapper wrapper = (RemoteInvocationResultWrapper)result.getValue();
        Boolean wasAborted = (Boolean)wrapper.getAttribute(WAS_ABORTED);
          LightweightStack<TransactionData> currentTransactions = _transactionStorage.get();
        if (wasAborted != null && wasAborted.booleanValue()) {
          // The remote transaction will have already rolled back, so don't bother with it
              if (!currentTransactions.empty()) {
              TransactionMgr.abortRemoteTransaction(currentTransactions.get(0));
View Full Code Here


        }
        }
        else {
          preProcessAttributeConsumers(bean, invocation);

            RemoteInvocationResultWrapper wrapper = new RemoteInvocationResultWrapper(invocation.invoke(targetObject));
            result = wrapper;

            postProcessAttributeProviders(invocation, wrapper, bean, targetObject);
        }
View Full Code Here

            if (invocation != null) {
                  String methodName = invocation.getMethodName();
                  preProcessAttributeConsumers(bean, invocation);
                      if (methodName.equals(COMMIT_TXN)) {
                    TransactionMgr.commitTransaction();
                    result = new RemoteInvocationResultWrapper("Commit successful");
                    terminateThread = true;
                  }
                  else if (methodName.equals(ROLLBACK_TXN)) {
                    TransactionMgr.rollbackTransaction();
                    result = new RemoteInvocationResultWrapper("Rollback successful");
                    terminateThread = true;
                  }
                  else if (methodName.equals(ABORT_TXN)) {
                    TransactionMgr.abort();
                    result = new RemoteInvocationResultWrapper("Abort successful");
                    terminateThread = true;
                  }
                  else {
                result = new RemoteInvocationResultWrapper(invocation.invoke(targetObject));
                  }
                      wasAborted = TransactionMgr.isAborted();
                      postProcessAttributeProviders(invocation, result, bean, targetObject);
                  // We also need to add an attribute which says if the distributed transaction
                  // was aborted or not. If it was, then we can kill this thread after we've returned
View Full Code Here

            currentTransactions.get(0).currentInvoker = null;
          }
        return new RemoteInvocationResult(e.exception);
      }
      else if (result.getValue() instanceof RemoteInvocationResultWrapper) {
        RemoteInvocationResultWrapper wrapper = (RemoteInvocationResultWrapper)result.getValue();
        Boolean wasAborted = (Boolean)wrapper.getAttribute(WAS_ABORTED);
          LightweightStack<TransactionData> currentTransactions = _transactionStorage.get();
        if (wasAborted != null && wasAborted.booleanValue()) {
          // The remote transaction will have already rolled back, so don't bother with it
              if (!currentTransactions.empty()) {
              TransactionMgr.abortRemoteTransaction(currentTransactions.get(0));
View Full Code Here

        }
        }
        else {
          preProcessAttributeConsumers(bean, invocation);

            RemoteInvocationResultWrapper wrapper = new RemoteInvocationResultWrapper(invocation.invoke(targetObject));
            result = wrapper;

            postProcessAttributeProviders(invocation, wrapper, bean, targetObject);
        }
View Full Code Here

            if (invocation != null) {
                  String methodName = invocation.getMethodName();
                  preProcessAttributeConsumers(bean, invocation);
                      if (methodName.equals(COMMIT_TXN)) {
                    TransactionMgr.commitTransaction();
                    result = new RemoteInvocationResultWrapper("Commit successful");
                    terminateThread = true;
                  }
                  else if (methodName.equals(ROLLBACK_TXN)) {
                    TransactionMgr.rollbackTransaction();
                    result = new RemoteInvocationResultWrapper("Rollback successful");
                    terminateThread = true;
                  }
                  else if (methodName.equals(ABORT_TXN)) {
                    TransactionMgr.abort();
                    result = new RemoteInvocationResultWrapper("Abort successful");
                    terminateThread = true;
                  }
                  else {
                result = new RemoteInvocationResultWrapper(invocation.invoke(targetObject));
                  }
                      wasAborted = TransactionMgr.isAborted();
                      postProcessAttributeProviders(invocation, result, bean, targetObject);
                  // We also need to add an attribute which says if the distributed transaction
                  // was aborted or not. If it was, then we can kill this thread after we've returned
View Full Code Here

TOP

Related Classes of Framework.remoting.RemoteInvocationResultWrapper

Copyright © 2018 www.massapicom. 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.