Package org.omg.CosTransactions

Examples of org.omg.CosTransactions.Coordinator


        if (theControl != null)
        {
      try
      {
          Coordinator theCoordinator = theControl.get_coordinator();

          if (theCoordinator != null)
          {
        stringRef = ORBManager.getORB().orb().object_to_string(theCoordinator);
          }
View Full Code Here


        }
    }

    private static GlobalTID getGlobalTID() {
        GlobalTID gtid = null;
        Coordinator coord = Utility.getCoordinator(Utility.getControl());
        JCoordinator jcoord = JCoordinatorHelper.narrow(coord);
        if (jcoord != null) {
            gtid = new GlobalTID(jcoord.getGlobalTID());
        } else {
            ControlImpl control = CurrentTransaction.getCurrent();
View Full Code Here

        }
    }

    private static GlobalTID getGlobalTID() {
        GlobalTID gtid = null;
        Coordinator coord = Utility.getCoordinator(Utility.getControl());
        JCoordinator jcoord = JCoordinatorHelper.narrow(coord);
        if (jcoord != null) {
            gtid = new GlobalTID(jcoord.getGlobalTID());
        } else {
            ControlImpl control = CurrentTransaction.getCurrent();
View Full Code Here

/* 135 */         _out = handler.createExceptionReply();
/* 136 */         HeuristicMixedHelper.write(_out, _ex1);
/*     */       }
/*     */
/*     */     case 5:
/* 142 */       Coordinator _arg0 = CoordinatorHelper.read(_input);
/* 143 */       _out = handler.createReply();
/* 144 */       _out.write_boolean(is_related_transaction(_arg0));
/* 145 */       break;
/*     */     case 6:
/*     */       try
/*     */       {
/* 151 */         _out = handler.createReply();
/* 152 */         rollback_only();
/*     */       }
/*     */       catch (Inactive _ex0)
/*     */       {
/* 156 */         _out = handler.createExceptionReply();
/* 157 */         InactiveHelper.write(_out, _ex0);
/*     */       }
/*     */
/*     */     case 7:
/* 163 */       Coordinator _arg0 = CoordinatorHelper.read(_input);
/* 164 */       _out = handler.createReply();
/* 165 */       _out.write_boolean(is_ancestor_transaction(_arg0));
/* 166 */       break;
/*     */     case 8:
/* 170 */       Coordinator _arg0 = CoordinatorHelper.read(_input);
/* 171 */       _out = handler.createReply();
/* 172 */       _out.write_boolean(is_same_transaction(_arg0));
/* 173 */       break;
/*     */     case 9:
/*     */       try
/*     */       {
/* 179 */         _out = handler.createReply();
/* 180 */         TerminatorHelper.write(_out, get_terminator());
/*     */       }
/*     */       catch (Unavailable _ex0)
/*     */       {
/* 184 */         _out = handler.createExceptionReply();
/* 185 */         UnavailableHelper.write(_out, _ex0);
/*     */       }
/*     */
/*     */     case 10:
/* 191 */       _out = handler.createReply();
/* 192 */       _out.write_ulong(hash_transaction());
/* 193 */       break;
/*     */     case 11:
/* 197 */       _out = handler.createReply();
/* 198 */       StatusHelper.write(_out, get_status());
/* 199 */       break;
/*     */     case 12:
/* 203 */       _out = handler.createReply();
/* 204 */       _out.write_ulong(hash_top_level_tran());
/* 205 */       break;
/*     */     case 13:
/*     */       try
/*     */       {
/* 211 */         _out = handler.createReply();
/* 212 */         CoordinatorHelper.write(_out, get_coordinator());
/*     */       }
/*     */       catch (Unavailable _ex0)
/*     */       {
/* 216 */         _out = handler.createExceptionReply();
/* 217 */         UnavailableHelper.write(_out, _ex0);
/*     */       }
/*     */
/*     */     case 14:
/*     */       try
/*     */       {
/* 225 */         Synchronization _arg0 = SynchronizationHelper.read(_input);
/* 226 */         _out = handler.createReply();
/* 227 */         register_synchronization(_arg0);
/*     */       }
/*     */       catch (SynchronizationUnavailable _ex0)
/*     */       {
/* 231 */         _out = handler.createExceptionReply();
/* 232 */         SynchronizationUnavailableHelper.write(_out, _ex0);
/*     */       }
/*     */       catch (Inactive _ex1)
/*     */       {
/* 236 */         _out = handler.createExceptionReply();
/* 237 */         InactiveHelper.write(_out, _ex1);
/*     */       }
/*     */
/*     */     case 15:
/* 243 */       _out = handler.createReply();
/* 244 */       _out.write_boolean(is_top_level_transaction());
/* 245 */       break;
/*     */     case 16:
/* 249 */       _out = handler.createReply();
/* 250 */       StatusHelper.write(_out, get_parent_status());
/* 251 */       break;
/*     */     case 17:
/* 255 */       int _arg0 = _input.read_ulong();
/* 256 */       _out = handler.createReply();
/* 257 */       TransactionDescHelper.write(_out, create_transaction(_arg0));
/* 258 */       break;
/*     */     case 18:
/*     */       try
/*     */       {
/* 264 */         _out = handler.createReply();
/* 265 */         PropagationContextHelper.write(_out, get_txcontext());
/*     */       }
/*     */       catch (Unavailable _ex0)
/*     */       {
/* 269 */         _out = handler.createExceptionReply();
/* 270 */         UnavailableHelper.write(_out, _ex0);
/*     */       }
/*     */
/*     */     case 19:
/* 276 */       _out = handler.createReply();
/* 277 */       _out.write_string(get_transaction_name());
/* 278 */       break;
/*     */     case 20:
/* 282 */       _out = handler.createReply();
/* 283 */       TransactionIdHelper.write(_out, get_transaction_id());
/* 284 */       break;
/*     */     case 21:
/* 288 */       PropagationContext _arg0 = PropagationContextHelper.read(_input);
/* 289 */       _out = handler.createReply();
/* 290 */       ControlHelper.write(_out, recreate(_arg0));
/* 291 */       break;
/*     */     case 22:
/* 295 */       int _arg0 = _input.read_ulong();
/* 296 */       _out = handler.createReply();
/* 297 */       ControlHelper.write(_out, create(_arg0));
/* 298 */       break;
/*     */     case 23:
/*     */       try
/*     */       {
/* 304 */         SubtransactionAwareResource _arg0 = SubtransactionAwareResourceHelper.read(_input);
/* 305 */         _out = handler.createReply();
/* 306 */         register_subtran_aware(_arg0);
/*     */       }
/*     */       catch (NotSubtransaction _ex0)
/*     */       {
/* 310 */         _out = handler.createExceptionReply();
/* 311 */         NotSubtransactionHelper.write(_out, _ex0);
/*     */       }
/*     */       catch (Inactive _ex1)
/*     */       {
/* 315 */         _out = handler.createExceptionReply();
/* 316 */         InactiveHelper.write(_out, _ex1);
/*     */       }
/*     */
/*     */     case 24:
/* 322 */       Coordinator _arg0 = CoordinatorHelper.read(_input);
/* 323 */       _out = handler.createReply();
/* 324 */       _out.write_boolean(is_descendant_transaction(_arg0));
/* 325 */       break;
/*     */     case 25:
/* 329 */       _out = handler.createReply();
View Full Code Here

/*  673 */       InputStream _is = null;
/*      */       try
/*      */       {
/*  676 */         OutputStream _os = _request("get_coordinator", true);
/*  677 */         _is = _invoke(_os);
/*  678 */         Coordinator _result = CoordinatorHelper.read(_is);
/*  679 */         Coordinator localCoordinator1 = _result;
/*      */         return localCoordinator1;
/*      */       }
/*      */       catch (RemarshalException _rx)
/*      */       {
/*      */       }
/*      */       catch (ApplicationException _ax)
/*      */       {
/*  684 */         String _id = _ax.getId();
/*  685 */         if (_id.equals("IDL:omg.org/CosTransactions/Unavailable:1.0"))
/*      */         {
/*  687 */           throw UnavailableHelper.read(_ax.getInputStream());
/*      */         }
/*  689 */         throw new RuntimeException("Unexpected exception " + _id);
/*      */       }
/*      */       finally
/*      */       {
/*  693 */         _releaseReply(_is);
/*      */       }
/*      */
/*      */     }
/*      */
/*  698 */     ServantObject _so = _servant_preinvoke("get_coordinator", _opsClass);
/*  699 */     if (_so == null)
/*  700 */       throw new UNKNOWN("local invocations not supported!"); TransactionServiceOperations _localServant = (TransactionServiceOperations)_so.servant;
/*      */     Coordinator _result;
/*      */     try {
/*  705 */       _result = _localServant.get_coordinator();
/*      */     }
/*      */     finally
/*      */     {
View Full Code Here

/*  92 */         _out = handler.createExceptionReply();
/*  93 */         InactiveHelper.write(_out, _ex1);
/*     */       }
/*     */
/*     */     case 3:
/*  99 */       Coordinator _arg0 = CoordinatorHelper.read(_input);
/* 100 */       _out = handler.createReply();
/* 101 */       _out.write_boolean(is_related_transaction(_arg0));
/* 102 */       break;
/*     */     case 4:
/*     */       try
/*     */       {
/* 108 */         _out = handler.createReply();
/* 109 */         rollback_only();
/*     */       }
/*     */       catch (Inactive _ex0)
/*     */       {
/* 113 */         _out = handler.createExceptionReply();
/* 114 */         InactiveHelper.write(_out, _ex0);
/*     */       }
/*     */
/*     */     case 5:
/* 120 */       Coordinator _arg0 = CoordinatorHelper.read(_input);
/* 121 */       _out = handler.createReply();
/* 122 */       _out.write_boolean(is_ancestor_transaction(_arg0));
/* 123 */       break;
/*     */     case 6:
/* 127 */       Coordinator _arg0 = CoordinatorHelper.read(_input);
/* 128 */       _out = handler.createReply();
/* 129 */       _out.write_boolean(is_same_transaction(_arg0));
/* 130 */       break;
/*     */     case 7:
/* 134 */       _out = handler.createReply();
/* 135 */       _out.write_ulong(hash_transaction());
/* 136 */       break;
/*     */     case 8:
/* 140 */       _out = handler.createReply();
/* 141 */       StatusHelper.write(_out, get_status());
/* 142 */       break;
/*     */     case 9:
/* 146 */       _out = handler.createReply();
/* 147 */       _out.write_ulong(hash_top_level_tran());
/* 148 */       break;
/*     */     case 10:
/*     */       try
/*     */       {
/* 154 */         Synchronization _arg0 = SynchronizationHelper.read(_input);
/* 155 */         _out = handler.createReply();
/* 156 */         register_synchronization(_arg0);
/*     */       }
/*     */       catch (SynchronizationUnavailable _ex0)
/*     */       {
/* 160 */         _out = handler.createExceptionReply();
/* 161 */         SynchronizationUnavailableHelper.write(_out, _ex0);
/*     */       }
/*     */       catch (Inactive _ex1)
/*     */       {
/* 165 */         _out = handler.createExceptionReply();
/* 166 */         InactiveHelper.write(_out, _ex1);
/*     */       }
/*     */
/*     */     case 11:
/* 172 */       _out = handler.createReply();
/* 173 */       _out.write_boolean(is_top_level_transaction());
/* 174 */       break;
/*     */     case 12:
/* 178 */       _out = handler.createReply();
/* 179 */       StatusHelper.write(_out, get_parent_status());
/* 180 */       break;
/*     */     case 13:
/*     */       try
/*     */       {
/* 186 */         _out = handler.createReply();
/* 187 */         PropagationContextHelper.write(_out, get_txcontext());
/*     */       }
/*     */       catch (Unavailable _ex0)
/*     */       {
/* 191 */         _out = handler.createExceptionReply();
/* 192 */         UnavailableHelper.write(_out, _ex0);
/*     */       }
/*     */
/*     */     case 14:
/* 198 */       _out = handler.createReply();
/* 199 */       TransactionIdHelper.write(_out, get_transaction_id());
/* 200 */       break;
/*     */     case 15:
/* 204 */       _out = handler.createReply();
/* 205 */       _out.write_string(get_transaction_name());
/* 206 */       break;
/*     */     case 16:
/*     */       try
/*     */       {
/* 212 */         SubtransactionAwareResource _arg0 = SubtransactionAwareResourceHelper.read(_input);
/* 213 */         _out = handler.createReply();
/* 214 */         register_subtran_aware(_arg0);
/*     */       }
/*     */       catch (NotSubtransaction _ex0)
/*     */       {
/* 218 */         _out = handler.createExceptionReply();
/* 219 */         NotSubtransactionHelper.write(_out, _ex0);
/*     */       }
/*     */       catch (Inactive _ex1)
/*     */       {
/* 223 */         _out = handler.createExceptionReply();
/* 224 */         InactiveHelper.write(_out, _ex1);
/*     */       }
/*     */
/*     */     case 17:
/* 230 */       Coordinator _arg0 = CoordinatorHelper.read(_input);
/* 231 */       _out = handler.createReply();
/* 232 */       _out.write_boolean(is_descendant_transaction(_arg0));
/* 233 */       break;
/*     */     }
/*     */
View Full Code Here

        if (theControl != null)
        {
      try
      {
          Coordinator theCoordinator = theControl.get_coordinator();

          if (theCoordinator != null)
          {
        stringRef = ORBManager.getORB().orb().object_to_string(theCoordinator);
          }
View Full Code Here

        if (theControl != null)
        {
      try
      {
          Coordinator theCoordinator = theControl.get_coordinator();

          if (theCoordinator != null)
          {
        stringRef = ORBManager.getORB().orb().object_to_string(theCoordinator);
          }
View Full Code Here

        if (theControl != null)
        {
      try
      {
          Coordinator theCoordinator = theControl.get_coordinator();
          PropagationContext ctx = null;
       
          if (theCoordinator != null)
          {
        ctx = theCoordinator.get_txcontext();

        data = packPropagationContext(ctx);
       
        theCoordinator = null;
          }
View Full Code Here

        if (theControl != null)
        {
      try
      {
          Coordinator theCoordinator = theControl.get_coordinator();

          if (theCoordinator != null)
          {
        stringRef = ORBManager.getORB().orb().object_to_string(theCoordinator);
          }
View Full Code Here

TOP

Related Classes of org.omg.CosTransactions.Coordinator

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.