public void post_init(ORBInitInfo info) { try { // Use CDR encapsulation with GIOP 1.0 encoding Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, /* GIOP version */ (byte) 0 /* GIOP revision*/); Codec codec = info.codec_factory().create_codec(encoding); // Get a reference to the PICurrent org.omg.CORBA.Object obj = info.resolve_initial_references("PICurrent"); org.omg.PortableInterceptor.Current piCurrent = org.omg.PortableInterceptor.CurrentHelper.narrow(obj); // Initialize the fields slot id, codec, and piCurrent // in the interceptor class TxServerInterceptor.init(info.allocate_slot_id(), codec, piCurrent); // Create and register interceptor TxServerInterceptor interceptor = new TxServerInterceptor(); info.add_server_request_interceptor(interceptor); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.unexpectedException(e); } }
@Override public void post_init(ORBInitInfo info) { try { org.omg.CORBA.Object obj; // Use CDR encapsulations with GIOP 1.0 encoding. Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, /* GIOP version */ (byte) 0 /* GIOP revision*/); Codec codec = info.codec_factory().create_codec(encoding); // Create and register client interceptor. obj = info.resolve_initial_references("SASCurrent"); SASCurrentImpl sasCurrentImpl = (SASCurrentImpl) obj; ElytronSASClientInterceptor clientInterceptor = new ElytronSASClientInterceptor(codec); info.add_client_request_interceptor(clientInterceptor); // Create and register server interceptor. SASTargetInterceptor serverInterceptor = new SASTargetInterceptor(codec); info.add_server_request_interceptor(serverInterceptor); // Initialize the SASCurrent implementation. sasCurrentImpl.init(serverInterceptor); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.unexpectedException(e); } } }
@Override public void post_init(ORBInitInfo info) { try { org.omg.CORBA.Object obj; // Use CDR encapsulations with GIOP 1.0 encoding. Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, /* GIOP version */ (byte) 0 /* GIOP revision*/); Codec codec = info.codec_factory().create_codec(encoding); // Create and register client interceptor. obj = info.resolve_initial_references("SASCurrent"); SASCurrentImpl sasCurrentImpl = (SASCurrentImpl) obj; SASClientInterceptor clientInterceptor = new SASClientInterceptor(codec); info.add_client_request_interceptor(clientInterceptor); // Create and register server interceptor. SASTargetInterceptor serverInterceptor = new SASTargetInterceptor(codec); info.add_server_request_interceptor(serverInterceptor); // Initialize the SASCurrent implementation. sasCurrentImpl.init(serverInterceptor); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.unexpectedException(e); } } }
info.add_server_request_interceptor(serverInterceptor);
/** * ORBInitializer pre_init method here we add the iiop interceptor */ public void pre_init(ORBInitInfo info) { try { info.add_server_request_interceptor(new ProtocolInterceptor()); } catch (Exception e) { TraceCarol.error("ProtocolInitializer.pre_init(ORBInitInfo info) could'nt instantiate iiop Interceptor", e); } }
/** * ORBInitializer pre_init method * here we add the iiop interceptor */ public void pre_init(ORBInitInfo info){ try { info.add_server_request_interceptor(new ProtocolInterceptor()); } catch (Exception e) { TraceCarol.error("ProtocolInitializer.pre_init(ORBInitInfo info) could'nt instantiate iiop Interceptor", e); } }
/** * This method resolves the NameService and registers the * interceptor. */ public void post_init(ORBInitInfo info) { try { org.omg.CORBA.ORB theORB = ((org.jacorb.orb.portableInterceptor.ORBInitInfoImpl)info).getORB(); info.add_server_request_interceptor (new ServerRecoveryInterceptor(theORB)); } catch (Exception e) { jtsLogger.loggerI18N.warn("com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.ServerInitializer_1", e); } }
/** * This method resolves the NameService and registers the * interceptor. */ public void post_init(ORBInitInfo info) { try { org.omg.CORBA.ORB theORB = ((org.jacorb.orb.portableInterceptor.ORBInitInfoImpl)info).getORB(); info.add_server_request_interceptor (new ServerRecoveryInterceptor(theORB)); } catch (Exception e) { jtsLogger.i18NLogger.warn_orbspecific_jacorb_recoverycoordinators_ServerInitializer_1(e); } }
/** * This method resolves the NameService and registers the * interceptor. */ public void post_init(ORBInitInfo info) { try { org.omg.CORBA.ORB theORB = ((com.sun.corba.se.impl.interceptors.ORBInitInfoImpl)info).getORB(); info.add_server_request_interceptor (new ServerRecoveryInterceptor(theORB)); } catch (Exception e) { jtsLogger.i18NLogger.warn_orbspecific_jacorb_recoverycoordinators_ServerInitializer_1(e); } }
public void pre_init(final ORBInitInfo info) { try { info.add_client_request_interceptor(new HAClientInterceptor()); info.add_server_request_interceptor(new HAServerInterceptor()); } catch (Exception e) { logger.error( "Error while adding the request interceptors", e); } }
public void post_init(ORBInitInfo info) { final ORB orb = ((org.jacorb.orb.portableInterceptor.ORBInitInfoImpl) info).getORB(); final Logger logger = orb.getConfiguration().getLogger("org.jacorb.interceptors.ior_init"); try { info.add_client_request_interceptor( new BiDirConnectionClientInterceptor( orb )); info.add_server_request_interceptor( new BiDirConnectionServerInterceptor( orb )); info.register_policy_factory( BIDIRECTIONAL_POLICY_TYPE.value, new BiDirPolicyFactory() ); } catch (Exception e) { logger.error("BiDirConnectionInitializer.post_init", e); } }
public void post_init(ORBInitInfo info) { try { // Use CDR encapsulation with GIOP 1.0 encoding Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, /* GIOP version */ (byte) 0 /* GIOP revision*/); Codec codec = info.codec_factory().create_codec(encoding); // Get a reference to the PICurrent org.omg.CORBA.Object obj = info.resolve_initial_references("PICurrent"); org.omg.PortableInterceptor.Current piCurrent = org.omg.PortableInterceptor.CurrentHelper.narrow(obj); // Initialize the fields slot id, codec, and piCurrent // in the interceptor class TxServerInterceptor.init(info.allocate_slot_id(), codec, piCurrent); // Create and register interceptor TxServerInterceptor interceptor = new TxServerInterceptor(); info.add_server_request_interceptor(interceptor); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.unexpectedException(e); } }
@Override public void post_init(ORBInitInfo info) { try { org.omg.CORBA.Object obj; // Use CDR encapsulations with GIOP 1.0 encoding. Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, /* GIOP version */ (byte) 0 /* GIOP revision*/); Codec codec = info.codec_factory().create_codec(encoding); // Create and register client interceptor. obj = info.resolve_initial_references("SASCurrent"); SASCurrentImpl sasCurrentImpl = (SASCurrentImpl) obj; SASClientInterceptor clientInterceptor = new SASClientInterceptor(codec); info.add_client_request_interceptor(clientInterceptor); // Create and register server interceptor. SASTargetInterceptor serverInterceptor = new SASTargetInterceptor(codec); info.add_server_request_interceptor(serverInterceptor); // Initialize the SASCurrent implementation. sasCurrentImpl.init(serverInterceptor); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.unexpectedException(e); } } }
public void post_init(ORBInitInfo info) { try { // Use CDR encapsulation with GIOP 1.0 encoding Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, /* GIOP version */ (byte) 0 /* GIOP revision*/); Codec codec = info.codec_factory().create_codec(encoding); // Get a reference to the PICurrent org.omg.CORBA.Object obj = info.resolve_initial_references("PICurrent"); org.omg.PortableInterceptor.Current piCurrent = org.omg.PortableInterceptor.CurrentHelper.narrow(obj); // Initialize the fields slot id, codec, and piCurrent // in the interceptor class TxServerInterceptor.init(info.allocate_slot_id(), codec, piCurrent); // Create and register interceptor TxServerInterceptor interceptor = new TxServerInterceptor(); info.add_server_request_interceptor(interceptor); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.unexpectedException(e); } }
@Override public void post_init(ORBInitInfo info) { try { org.omg.CORBA.Object obj; // Use CDR encapsulations with GIOP 1.0 encoding. Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, /* GIOP version */ (byte) 0 /* GIOP revision*/); Codec codec = info.codec_factory().create_codec(encoding); // Create and register client interceptor. obj = info.resolve_initial_references("SASCurrent"); SASCurrentImpl sasCurrentImpl = (SASCurrentImpl) obj; SASClientInterceptor clientInterceptor = new SASClientInterceptor(codec); info.add_client_request_interceptor(clientInterceptor); // Create and register server interceptor. SASTargetInterceptor serverInterceptor = new SASTargetInterceptor(codec); info.add_server_request_interceptor(serverInterceptor); // Initialize the SASCurrent implementation. sasCurrentImpl.init(serverInterceptor); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.unexpectedException(e); } } }
@Override public void post_init(ORBInitInfo info) { try { org.omg.CORBA.Object obj; // Use CDR encapsulations with GIOP 1.0 encoding. Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, /* GIOP version */ (byte) 0 /* GIOP revision*/); Codec codec = info.codec_factory().create_codec(encoding); // Create and register client interceptor. obj = info.resolve_initial_references("SASCurrent"); SASCurrentImpl sasCurrentImpl = (SASCurrentImpl) obj; ElytronSASClientInterceptor clientInterceptor = new ElytronSASClientInterceptor(codec); info.add_client_request_interceptor(clientInterceptor); // Create and register server interceptor. SASTargetInterceptor serverInterceptor = new SASTargetInterceptor(codec); info.add_server_request_interceptor(serverInterceptor); // Initialize the SASCurrent implementation. sasCurrentImpl.init(serverInterceptor); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.unexpectedException(e); } } }
@Override public void post_init(ORBInitInfo info) { try { org.omg.CORBA.Object obj; // Use CDR encapsulations with GIOP 1.0 encoding. Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, /* GIOP version */ (byte) 0 /* GIOP revision*/); Codec codec = info.codec_factory().create_codec(encoding); // Create and register client interceptor. obj = info.resolve_initial_references("SASCurrent"); SASCurrentImpl sasCurrentImpl = (SASCurrentImpl) obj; ElytronSASClientInterceptor clientInterceptor = new ElytronSASClientInterceptor(codec); info.add_client_request_interceptor(clientInterceptor); // Create and register server interceptor. SASTargetInterceptor serverInterceptor = new SASTargetInterceptor(codec); info.add_server_request_interceptor(serverInterceptor); // Initialize the SASCurrent implementation. sasCurrentImpl.init(serverInterceptor); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.unexpectedException(e); } } }
info.add_server_request_interceptor(serverInterceptor);
info.add_server_request_interceptor(serverInterceptor);
new ClientContextTransferInterceptor(logger, slot_id, codec)); info.add_server_request_interceptor( new ServerContextTransferInterceptor(codec, slot_id,