Package org.omg.CosTransactions

Examples of org.omg.CosTransactions.RecoveryCoordinator


            accRes = new AccountResource(this, _name);
            ref = org.omg.CosTransactions.ResourceHelper.narrow(OA.getRootOA(ORB.getInstance("ServerSide")).corbaReference(accRes));

            try
            {
                RecoveryCoordinator recoverycoordinator = OTSManager.get_current().get_control().get_coordinator().register_resource(ref);
            }
            catch (Inactive inactive)
            {
                // Display as much help as possible to the user track down the configuration problem
                System.err.println("CosTransactions Error: Could not register_resource() Inactive exception: " + inactive);
View Full Code Here


            accRes = new AccountResource(this, _name);
            ref = org.omg.CosTransactions.ResourceHelper.narrow(OA.getRootOA(ORB.getInstance("ServerSide")).corbaReference(accRes));

            try
            {
                RecoveryCoordinator recoverycoordinator = control.get_coordinator().register_resource(ref);
            }
            catch (Inactive inactive)
            {
                // Display as much help as possible to the user track down the configuration problem
                System.err.println("CosTransactions Error: Could not register_resource() Inactive exception: " + inactive);
View Full Code Here

            // The resource reference is obtained so that we can register the resource within the transaction
            // This trailmap's account resource will be accessed from the ORB instance "test"
            ref = org.omg.CosTransactions.ResourceHelper.narrow(OA.getRootOA(ORB.getInstance("test")).corbaReference(accRes));
            try
            {
                RecoveryCoordinator recoverycoordinator = OTSManager.get_current().get_control().get_coordinator().register_resource(ref);
            }
            catch (Inactive inactive)
            {
                // Display as much help as possible to the user track down the configuration problem
                System.err.println("CosTransactions Error: Could not register_resource() Inactive exception: " + inactive);
View Full Code Here

/*     */       try
/*     */       {
/*  78 */         OutputStream _os = _request("register_resource", true);
/*  79 */         ResourceHelper.write(_os, r);
/*  80 */         _is = _invoke(_os);
/*  81 */         RecoveryCoordinator _result = RecoveryCoordinatorHelper.read(_is);
/*  82 */         RecoveryCoordinator localRecoveryCoordinator1 = _result;
/*     */         return localRecoveryCoordinator1;
/*     */       }
/*     */       catch (RemarshalException _rx)
/*     */       {
/*     */       }
/*     */       catch (ApplicationException _ax)
/*     */       {
/*  87 */         String _id = _ax.getId();
/*  88 */         if (_id.equals("IDL:omg.org/CosTransactions/Inactive:1.0"))
/*     */         {
/*  90 */           throw InactiveHelper.read(_ax.getInputStream());
/*     */         }
/*  92 */         throw new RuntimeException("Unexpected exception " + _id);
/*     */       }
/*     */       finally
/*     */       {
/*  96 */         _releaseReply(_is);
/*     */       }
/*     */
/*     */     }
/*     */
/* 101 */     ServantObject _so = _servant_preinvoke("register_resource", _opsClass);
/* 102 */     if (_so == null)
/* 103 */       throw new UNKNOWN("local invocations not supported!"); CoordinatorExtOperations _localServant = (CoordinatorExtOperations)_so.servant;
/*     */     RecoveryCoordinator _result;
/*     */     try {
/* 108 */       _result = _localServant.register_resource(r);
/*     */     }
/*     */     finally
/*     */     {
View Full Code Here

/*      */       try
/*      */       {
/*   78 */         OutputStream _os = _request("register_resource", true);
/*   79 */         ResourceHelper.write(_os, r);
/*   80 */         _is = _invoke(_os);
/*   81 */         RecoveryCoordinator _result = RecoveryCoordinatorHelper.read(_is);
/*   82 */         RecoveryCoordinator localRecoveryCoordinator1 = _result;
/*      */         return localRecoveryCoordinator1;
/*      */       }
/*      */       catch (RemarshalException _rx)
/*      */       {
/*      */       }
/*      */       catch (ApplicationException _ax)
/*      */       {
/*   87 */         String _id = _ax.getId();
/*   88 */         if (_id.equals("IDL:omg.org/CosTransactions/Inactive:1.0"))
/*      */         {
/*   90 */           throw InactiveHelper.read(_ax.getInputStream());
/*      */         }
/*   92 */         throw new RuntimeException("Unexpected exception " + _id);
/*      */       }
/*      */       finally
/*      */       {
/*   96 */         _releaseReply(_is);
/*      */       }
/*      */
/*      */     }
/*      */
/*  101 */     ServantObject _so = _servant_preinvoke("register_resource", _opsClass);
/*  102 */     if (_so == null)
/*  103 */       throw new UNKNOWN("local invocations not supported!"); TransactionServiceOperations _localServant = (TransactionServiceOperations)_so.servant;
/*      */     RecoveryCoordinator _result;
/*      */     try {
/*  108 */       _result = _localServant.register_resource(r);
/*      */     }
/*      */     finally
/*      */     {
View Full Code Here

            accRes = new AccountResource(this, _name);
            ref = org.omg.CosTransactions.ResourceHelper.narrow(OA.getRootOA(ORB.getInstance("ServerSide")).corbaReference(accRes));

            try
            {
                RecoveryCoordinator recoverycoordinator = control.get_coordinator().register_resource(ref);
            }
            catch (Inactive inactive)
            {
                // Display as much help as possible to the user track down the configuration problem
                System.err.println("CosTransactions Error: Could not register_resource() Inactive exception: " + inactive);
View Full Code Here

            // The resource reference is obtained so that we can register the resource within the transaction
            // This trailmap's account resource will be accessed from the ORB instance "test"
            ref = org.omg.CosTransactions.ResourceHelper.narrow(OA.getRootOA(ORB.getInstance("test")).corbaReference(accRes));
            try
            {
                RecoveryCoordinator recoverycoordinator = OTSManager.get_current().get_control().get_coordinator().register_resource(ref);
            }
            catch (Inactive inactive)
            {
                // Display as much help as possible to the user track down the configuration problem
                System.err.println("CosTransactions Error: Could not register_resource() Inactive exception: " + inactive);
View Full Code Here

            accRes = new AccountResource(this, _name);
            ref = org.omg.CosTransactions.ResourceHelper.narrow(OA.getRootOA(ORB.getInstance("ServerSide")).corbaReference(accRes));

            try
            {
                RecoveryCoordinator recoverycoordinator = OTSManager.get_current().get_control().get_coordinator().register_resource(ref);
            }
            catch (Inactive inactive)
            {
                // Display as much help as possible to the user track down the configuration problem
                System.err.println("CosTransactions Error: Could not register_resource() Inactive exception: " + inactive);
View Full Code Here

TOP

Related Classes of org.omg.CosTransactions.RecoveryCoordinator

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.