Search in sources :

Example 1 with SavableSerializer

use of com.jme3.network.serializing.serializers.SavableSerializer in project jmonkeyengine by jMonkeyEngine.

the class TestRemoteCall method main.

public static void main(String[] args) throws IOException, InterruptedException {
    Serializer.registerClass(Savable.class, new SavableSerializer());
    createServer();
    Client client = Network.connectToServer("localhost", 5110);
    client.start();
    ObjectStore store = new ObjectStore(client);
    ServerAccess access = store.getExposedObject("access", ServerAccess.class, true);
    boolean result = access.attachChild("Models/Oto/Oto.mesh.xml");
    System.out.println(result);
}
Also used : SavableSerializer(com.jme3.network.serializing.serializers.SavableSerializer) ObjectStore(com.jme3.network.rmi.ObjectStore) Client(com.jme3.network.Client)

Aggregations

Client (com.jme3.network.Client)1 ObjectStore (com.jme3.network.rmi.ObjectStore)1 SavableSerializer (com.jme3.network.serializing.serializers.SavableSerializer)1