예제 #1
0
        public Hashtable CreateHashtableWithByRefElems(int nrOfElems)
        {
            Hashtable result = new Hashtable();

            for (int i = 0; i < nrOfElems; i++)
            {
                result[i] = new TestServiceImpl();
            }
            return(result);
        }
예제 #2
0
        public static void Main(String[] args) {
            InitCustomMapping();

            // 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();
        }
예제 #3
0
        public static void Main(String[] args)
        {
            InitCustomMapping();

            // 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();
        }
예제 #4
0
 public Hashtable CreateHashtableWithByRefElems(int nrOfElems) {
     Hashtable result = new Hashtable();
     for (int i = 0; i <nrOfElems; i++) {
         result[i] = new TestServiceImpl();
     }
     return result;
 }