public static void createServer(){
        serverApp = new SimpleApplication() {
            @Override
            public void simpleInitApp() {
            }
        };
        serverApp.start();

        try {
            Server server = Network.createServer(5110);
            server.start();

            ObjectStore store = new ObjectStore(server);
            store.exposeObject("access", new ServerAccessImpl());
        } catch (IOException ex) {
            ex.printStackTrace();
        }
    }
Attaches the model with the given name to the server's scene.

@param model The model name

@return True if the model was attached.

@throws RuntimeException If some error occurs.
jme3-examples/src/main/java/jme3test/network/TestRemoteCall.java