Exemplo n.º 1
0
        public Hashtable CreateHashtableWithByRefElems(int nrOfElems)
        {
            Hashtable result = new Hashtable();

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