Package pl.icedev.rmi

Examples of pl.icedev.rmi.RMIServer


import java.util.Map;

public class TestCS {

    public static void main(String[] args) throws IOException {
        final RMIServer serv = new RMIServer(new InetSocketAddress(2888));
        serv.registerInterface(new AwesomeServiceImpl(), AwesomeService.class);

        new Thread(new Runnable() {
            public void run() {
                try {
                    System.out.println("Listening.");
                    while (true) {
                        serv.update(-1);
                    }
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
View Full Code Here

TOP

Related Classes of pl.icedev.rmi.RMIServer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.