Esempio n. 1
0
        public static void Main(String[] args)
        {
            // register the channel
            int         port = 8087;
            IDictionary dict = new Hashtable();

            dict["port"] = port;
            string endian = "BigEndian";

            if (args.Length > 0)
            {
                endian = args[0];
            }
            dict["endian"] = endian;
            IiopChannel chan = new IiopChannel(dict);

            ChannelServices.RegisterChannel(chan, false);

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

            RemotingServices.Marshal(test, objectURI);

            Console.WriteLine("server running");
            Thread.Sleep(Timeout.Infinite);
        }
Esempio n. 2
0
        public static void Main(String[] args) {
            // register the channel
            int port = 8087;
            IDictionary dict = new Hashtable();
            dict["port"] = port;
            string endian = "BigEndian";
            if (args.Length > 0) {
                endian = args[0];
            }
            dict["endian"] = endian;
            IiopChannel chan = new IiopChannel(dict);
            ChannelServices.RegisterChannel(chan, false);

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

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