Package org.omg.CosTransactions

Examples of org.omg.CosTransactions.PropagationContext


        try
        {
            org.omg.PortableInterceptor.Current pi_current =
                (org.omg.PortableInterceptor.Current)orb.resolve_initial_references("PICurrent");

            PropagationContext context = PropagationContextHelper.extract
                (pi_current.get_slot(slot_id));

            return ControlHelper.extract(context.implementation_specific_data);
        }
        catch(Exception e)
View Full Code Here


                                                 new otid_t(0, 0, new byte[0]));
     
            Any control_any = orb.create_any();
            ControlHelper.insert(control_any, control);

            PropagationContext context = new PropagationContext(timeout,
                                                                id, new TransIdentity[0],
                                                                control_any);
            Any context_any = orb.create_any();
            PropagationContextHelper.insert(context_any, context);
View Full Code Here

            int timeout =
                (timeouts.containsKey(thread))?
                ((Integer) timeouts.get(thread)).intValue() :
                DEFAULT_TIMEOUT;

            PropagationContext context =
                new PropagationContext(timeout,
                                       id,
                                       new TransIdentity[0],
                                       control_any);

            Any context_any = orb.create_any();
View Full Code Here

/* 664 */       InputStream _is = null;
/*     */       try
/*     */       {
/* 667 */         OutputStream _os = _request("get_txcontext", true);
/* 668 */         _is = _invoke(_os);
/* 669 */         PropagationContext _result = PropagationContextHelper.read(_is);
/* 670 */         PropagationContext localPropagationContext1 = _result;
/*     */         return localPropagationContext1;
/*     */       }
/*     */       catch (RemarshalException _rx)
/*     */       {
/*     */       }
/*     */       catch (ApplicationException _ax)
/*     */       {
/* 675 */         String _id = _ax.getId();
/* 676 */         if (_id.equals("IDL:omg.org/CosTransactions/Unavailable:1.0"))
/*     */         {
/* 678 */           throw UnavailableHelper.read(_ax.getInputStream());
/*     */         }
/* 680 */         throw new RuntimeException("Unexpected exception " + _id);
/*     */       }
/*     */       finally
/*     */       {
/* 684 */         _releaseReply(_is);
/*     */       }
/*     */
/*     */     }
/*     */
/* 689 */     ServantObject _so = _servant_preinvoke("get_txcontext", _opsClass);
/* 690 */     if (_so == null)
/* 691 */       throw new UNKNOWN("local invocations not supported!"); CoordinatorExtOperations _localServant = (CoordinatorExtOperations)_so.servant;
/*     */     PropagationContext _result;
/*     */     try {
/* 696 */       _result = _localServant.get_txcontext();
/*     */     }
/*     */     finally
/*     */     {
View Full Code Here

/*     */     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();
View Full Code Here

/*  920 */       InputStream _is = null;
/*      */       try
/*      */       {
/*  923 */         OutputStream _os = _request("get_txcontext", true);
/*  924 */         _is = _invoke(_os);
/*  925 */         PropagationContext _result = PropagationContextHelper.read(_is);
/*  926 */         PropagationContext localPropagationContext1 = _result;
/*      */         return localPropagationContext1;
/*      */       }
/*      */       catch (RemarshalException _rx)
/*      */       {
/*      */       }
/*      */       catch (ApplicationException _ax)
/*      */       {
/*  931 */         String _id = _ax.getId();
/*  932 */         if (_id.equals("IDL:omg.org/CosTransactions/Unavailable:1.0"))
/*      */         {
/*  934 */           throw UnavailableHelper.read(_ax.getInputStream());
/*      */         }
/*  936 */         throw new RuntimeException("Unexpected exception " + _id);
/*      */       }
/*      */       finally
/*      */       {
/*  940 */         _releaseReply(_is);
/*      */       }
/*      */
/*      */     }
/*      */
/*  945 */     ServantObject _so = _servant_preinvoke("get_txcontext", _opsClass);
/*  946 */     if (_so == null)
/*  947 */       throw new UNKNOWN("local invocations not supported!"); TransactionServiceOperations _localServant = (TransactionServiceOperations)_so.servant;
/*      */     PropagationContext _result;
/*      */     try {
/*  952 */       _result = _localServant.get_txcontext();
/*      */     }
/*      */     finally
/*      */     {
View Full Code Here

/*     */
/*     */   static PropagationContext getEmptyPropagationContext()
/*     */   {
/*  99 */     if (emptyPC == null)
/*     */     {
/* 103 */       emptyPC = new PropagationContext();
/* 104 */       emptyPC.parents = new TransIdentity[0];
/* 105 */       emptyPC.current = new TransIdentity();
/* 106 */       emptyPC.current.otid = new otid_t();
/* 107 */       emptyPC.current.otid.formatID = 666;
/* 108 */       emptyPC.current.otid.bqual_length = 1;
View Full Code Here

/*     */
/*     */   protected Any getTransactionPropagationContextAny()
/*     */   {
/*     */     try
/*     */     {
/* 180 */       PropagationContext pc = null;
/* 181 */       TransactionManager tm = getTransactionManager();
/* 182 */       Transaction tx = tm.getTransaction();
/* 183 */       if (!TxUtils.isUncommitted(tx))
/*     */       {
/* 185 */         if (traceEnabled)
View Full Code Here

/* 44 */       int _arg0 = _input.read_ulong();
/* 45 */       _out = handler.createReply();
/* 46 */       ControlHelper.write(_out, create(_arg0));
/* 47 */       break;
/*    */     case 1:
/* 51 */       PropagationContext _arg0 = PropagationContextHelper.read(_input);
/* 52 */       _out = handler.createReply();
/* 53 */       ControlHelper.write(_out, recreate(_arg0));
/* 54 */       break;
/*    */     case 2:
/* 58 */       int _arg0 = _input.read_ulong();
View Full Code Here

        try {
            serviceContext = serverRequestInfo.get_request_service_context(TransactionService.value);
        } catch (BAD_PARAM e) {
            // do nothing
        }
        PropagationContext propagationContext;
        if (serviceContext == null) {
            propagationContext = null;
        } else {
            byte[] encoded = serviceContext.context_data;
            Codec codec = Util.getCodec();
View Full Code Here

TOP

Related Classes of org.omg.CosTransactions.PropagationContext

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.