org.distributeme.test.echo.TestRemoteClient Maven / Gradle / Ivy
package org.distributeme.test.echo;
import java.util.HashMap;
import org.distributeme.core.ServiceLocator;
public class TestRemoteClient {
public static void main(String a[]) throws Exception{
EchoService service = ServiceLocator.getRemote(EchoService.class);
service.printHello();
System.out.println("sent printHello");
Echo echo = new Echo();
System.out.println("sending echo: "+echo);
echo = service.echo(echo);
System.out.println("received echo: "+echo);
long limit = 1000;
long start = System.nanoTime();
for (int i=0; i params = new HashMap();
params.put("CLIENTSIDE", "hello from client");
System.out.println("Client side parameters.... "+params);
service.testCallByRef(params);
System.out.println("Client side parameters after call "+params);
//and now the very special test.
System.out.println("=== TESTING testCallByRefWithInterceptors ===");
params = new HashMap();
params.put("CLIENTSIDE", "hello from client");
System.out.println("Client side parameters.... "+params);
service.testCallByRefWithInterceptors(params);
System.out.println("Client side parameters after call "+params);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy