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

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