SASContextBodyHelper.insert(any, contextBody); ServiceContext sc = new ServiceContext(sasContextId, codec.encode_value(any)); ri.add_request_service_context(sc, true /*replace existing context*/);
SASContextBodyHelper.insert(any, contextBody); ServiceContext sc = new ServiceContext(sasContextId, codec.encode_value(any)); ri.add_request_service_context(sc, true /*replace existing context*/);
SASContextBodyHelper.insert(any, contextBody); ServiceContext sc = new ServiceContext(SAS_CONTEXT_ID, codec.encode_value(any)); ri.add_request_service_context(sc, true /*replace existing context*/);
/** * Add the propagation context to the outgoing message */ public void send_request( ClientRequestInfo ri ) throws ForwardRequest { try { org.omg.CORBA.Any any = ri.get_slot(slot_id); if (! (any.type().kind().value() == org.omg.CORBA.TCKind._tk_null)) { ServiceContext ctx = new ServiceContext(TransactionService.value, codec.encode(any)); if (logger.isDebugEnabled()) logger.debug("adding Transaction Service Context" + " to outgoing request"); ri.add_request_service_context(ctx, false); } } catch (Exception e) { } }
ri.add_request_service_context(sc, no_replace); if(_logger.isLoggable(Level.FINE)){ _logger.log(Level.FINE,"Added EstablishContext message to service context list");
SASContextBodyHelper.insert(any, contextBody); ServiceContext sc = new ServiceContext(sasContextId, codec.encode_value(any)); ri.add_request_service_context(sc, true /*replace existing context*/);
if (indicator.type().kind().equals(TCKind.tk_null)) ri.add_request_service_context(RCctx, false);
SASContextBodyHelper.insert(any, contextBody); ServiceContext sc = new ServiceContext(sasContextId, codec.encode_value(any)); ri.add_request_service_context(sc, true /*replace existing context*/);
if (indicator.type().kind().equals(TCKind.tk_null)) ri.add_request_service_context(RCctx, false);
if (indicator.type().kind().equals(TCKind.tk_null)) ri.add_request_service_context(RCctx, false);
ri.add_request_service_context(encodeSASContextBody(sasBody), true);
SASContextBodyHelper.insert(any, contextBody); ServiceContext sc = new ServiceContext(sasContextId, codec.encode_value(any)); ri.add_request_service_context(sc, true /*replace existing context*/);
/** * Constructs the HAContext with the required replication information on * the client side */ public void send_request(final ClientRequestInfo jri) throws ForwardRequest { // Get the current HA Context info associated to the thread HACurrent current = HACurrent.getHACurrent(); // Fill the "req_id" field to propagate through the interceptor if the // nextReq has been included in the HA current context (held in the // thread-local variable) by the stub HAContext newHACtx = new HAContext(); Stack<RequestId> requests = current.getRequests(); newHACtx.setRequests(requests); newHACtx.setOnFailover(current.isOnFailover()); logger.debug("Propagating requests chain: " + newHACtx); ServiceContext serviceContext; try { serviceContext = new ServiceContext(HA_CTX_ID, marshallHAContext(newHACtx)); jri.add_request_service_context(serviceContext, true); } catch (IOException e) { logger.error("Error while marshalling " + newHACtx, e); } }
SASContextBodyHelper.insert(any, contextBody); ServiceContext sc = new ServiceContext(sasContextId, codec.encode_value(any)); ri.add_request_service_context(sc, true /*replace existing context*/);
ri.add_request_service_context( context, true );
ServiceContext service_context = new ServiceContext(OTSManager.serviceId, octets); request_info.add_request_service_context(service_context, true);
request_info.add_request_service_context(service_context, true);
public void send_request( ClientRequestInfo ri ) throws ForwardRequest { //only send a BiDir service context if our orb allows it, and //the connection was initiated in this process and if this is not // a local call. if( !orb.useBiDirGIOP() || ((ClientRequestInfoImpl) ri).isLocalInterceptor() || !((ClientRequestInfoImpl) ri).getConnection().isClientInitiated() ) { return; } if( bidir_ctx == null ) { init_bidir_ctx (); } if ( !((ClientRequestInfoImpl) ri).getConnection().isListenPointListSent() ) { ri.add_request_service_context( bidir_ctx, true ); } //if this connection isn't "bidir'ed" yet, do so now GIOPConnection conn = ((ClientRequestInfoImpl) ri).getConnection().getGIOPConnection(); if(conn.getRequestListener() instanceof NoBiDirClientRequestListener) { conn.setRequestListener(orb.getBasicAdapter().getRequestListener()); } }
SASContextBodyHelper.insert(any, contextBody); ServiceContext sc = new ServiceContext(SAS_CONTEXT_ID, codec.encode_value(any)); ri.add_request_service_context(sc, true /*replace existing context*/);
SASContextBodyHelper.insert(any, contextBody); ServiceContext sc = new ServiceContext(SAS_CONTEXT_ID, codec.encode_value(any)); ri.add_request_service_context(sc, true /*replace existing context*/);