Beispiel #1
0
        public static void Main(String[] args)
        {
            IOrbServices        orb = OrbServices.GetSingleton();
            TestInterceptorInit testInterceptorInit = new TestInterceptorInit();

            orb.RegisterPortableInterceptorInitalizer(testInterceptorInit);

            // register the channel
            int         port = 8087;
            IiopChannel chan = new IiopChannel(port);

            ChannelServices.RegisterChannel(chan, false);

            orb.CompleteInterceptorRegistration();

            TestInterceptorControlService controlService =
                new TestInterceptorControlService(testInterceptorInit);
            string objectURIControlService = "interceptorControl";

            RemotingServices.Marshal(controlService, objectURIControlService);

            TestService test      = new TestService();
            string      objectURI = "test";

            RemotingServices.Marshal(test, objectURI);

            Console.WriteLine("server running");
            Thread.Sleep(Timeout.Infinite);
        }
Beispiel #2
0
        private void RegisterInterceptors()
        {
            IOrbServices orb = OrbServices.GetSingleton();

            m_testInterceptorInit = new TestInterceptorInit();
            orb.RegisterPortableInterceptorInitalizer(m_testInterceptorInit);
            orb.CompleteInterceptorRegistration();
        }
 static void Main(string[] args)
 {
     IOrbServices orb = OrbServices.GetSingleton();
     orb.OverrideDefaultCharSets(CharSet.UTF8, WCharSet.UTF16);
     orb.RegisterPortableInterceptorInitalizer(new MyOrbInitializer());
     orb.CompleteInterceptorRegistration();