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); }