/** * This method is a convenience method for the server * programmer the exctract the Control from the * PICurrent. */ public static Control getControl(org.omg.CORBA.ORB orb) { 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) { if (logger.isDebugEnabled()) logger.debug("Unable to obtain Transaction Service reference. Giving up.", e ); } return null; }
public void receive_request(ServerRequestInfo ri) throws ForwardRequest { 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)); Control control = ControlHelper.extract(context.implementation_specific_data); ts_current.resume(control); } catch(Exception e) { if (logger.isDebugEnabled()) logger.debug("Exception", e); } }
public Uid getReceivedCoordinatorUid() throws InvalidSlot { Any ctx = _piCurrent.get_slot(OTSManager.getReceivedSlotId()); if (ctx != null && ctx.type().kind().value() != TCKind._tk_null) { PropagationContext theContext = org.omg.CosTransactions.PropagationContextHelper.extract(ctx); if (theContext.current.coord == null) // nothing to use!! return null; else return Helper.getUid(Helper.getUidCoordinator(theContext.current.coord)); } else return null; }
throw new INTERNAL(0, CompletionStatus.COMPLETED_YES); PropagationContext ctx = PropagationContextHelper.extract(any);
PropagationContext theContext = org.omg.CosTransactions.PropagationContextHelper.extract(ctx);
PropagationContext theContext = org.omg.CosTransactions.PropagationContextHelper.extract(ctx);
throw new INTERNAL(0, CompletionStatus.COMPLETED_NO); PropagationContext ctx = PropagationContextHelper.extract(any);
throw new INTERNAL(); PropagationContext ctx = PropagationContextHelper.extract(any);
throw new INTERNAL(0, completionStatus); PropagationContext ctx = PropagationContextHelper.extract(any);