Package net.sourceforge.rmilite

Examples of net.sourceforge.rmilite.Server.publish()


    private void launch(final String[] args) throws Exception {
        int port = Integer.parseInt(args[0]);
        Server server;
        server = new Server(port);
        server.publish(IJavaRuntimeInstantiator.class, new JavaRuntimeInstantiatorImpl(dropFirstArg(args)), EXPORTED_INTERFACES);
    }

    private String[] dropFirstArg(String[] args) {
        String[] newArgs = new String[args.length - 1];
        System.arraycopy(args, 1, newArgs, 0, args.length - 1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.