Ejemplo n.º 1
0
        void init()
        {
            RpcCommunicator.instance().logger.addLogHandler("stdout", new RpcLogHandlerStdout());
            RpcCommunicator.instance().initialize("server1");
            RpcCommunicator.instance().settings.callwait = 1000 * 1000;

            RpcAdapter adapter = RpcCommunicator.instance().createAdapter("adapter1");

            prx = ServerProxy.create("192.168.199.235", 16005, false);
            TerminalImpl impl = new TerminalImpl();

            adapter.attachConnection(prx.conn);
            adapter.addServant(impl);
        }