Example #1
0
        public static void Main(String[] args) {
            // register the channel
            int port = 8087;
            IiopChannel chan = new IiopChannel(port);
            ChannelServices.RegisterChannel(chan, false);

            TestServiceImpl test = new TestServiceImpl();
            string objectURI = "test";
            RemotingServices.Marshal(test, objectURI);

            Console.WriteLine("server running");
            Console.ReadLine();
        }
Example #2
0
        public static void Main(String[] args) {
            // register the channel
            int port = 8087;
            IDictionary properties = new Hashtable();
            properties[IiopServerChannel.PORT_KEY] = port;
            properties[IiopChannel.BIDIR_KEY] = true;
            IiopChannel chan = new IiopChannel(properties);
            ChannelServices.RegisterChannel(chan, false);

            TestServiceImpl test = new TestServiceImpl();
            string objectURI = "test";
            RemotingServices.Marshal(test, objectURI);
            
            Console.WriteLine("server running");
            Thread.Sleep(Timeout.Infinite);
        }
Example #3
0
        public static void Main(String[] args) {
            // Some tests on client side like TestIsACall require marshalling to be done using concrete type and not
            // exposed interface:
            omg.org.CORBA.OrbServices.GetSingleton().SerializerFactoryConfig.ObjSerializationUseConcreteType = true;
            // register the channel
            int port = 8087;
            IiopChannel chan = new IiopChannel(port);
            ChannelServices.RegisterChannel(chan, false);

            TestServiceImpl test = new TestServiceImpl();
            string objectURI = "test";
            RemotingServices.Marshal(test, objectURI);

            Console.WriteLine("server running");
            Thread.Sleep(Timeout.Infinite);
        }
Example #4
0
        public static void Main(String[] args)
        {
            // register the channel
            int         port = 8087;
            IiopChannel chan = new IiopChannel(port);

            ChannelServices.RegisterChannel(chan, false);

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

            RemotingServices.Marshal(test, objectURI);

            Console.WriteLine("server running");
            Console.ReadLine();
        }
Example #5
0
        public static void Main(String[] args)
        {
            // Some tests on client side like TestIsACall require marshalling to be done using concrete type and not
            // exposed interface:
            omg.org.CORBA.OrbServices.GetSingleton().SerializerFactoryConfig.ObjSerializationUseConcreteType = true;
            // register the channel
            int         port = 8087;
            IiopChannel chan = new IiopChannel(port);

            ChannelServices.RegisterChannel(chan, false);

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

            RemotingServices.Marshal(test, objectURI);

            Console.WriteLine("server running");
            Thread.Sleep(Timeout.Infinite);
        }
Example #6
0
        public static void Main(String[] args)
        {
            // register the channel
            int         port       = 8087;
            IDictionary properties = new Hashtable();

            properties[IiopServerChannel.PORT_KEY] = port;
            properties[IiopChannel.BIDIR_KEY]      = true;
            IiopChannel chan = new IiopChannel(properties);

            ChannelServices.RegisterChannel(chan, false);

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

            RemotingServices.Marshal(test, objectURI);

            Console.WriteLine("server running");
            Thread.Sleep(Timeout.Infinite);
        }