All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.distributeme.test.interception.TestInterceptedCall Maven / Gradle / Ivy

package org.distributeme.test.interception;

import org.distributeme.core.ServiceLocator;

public class TestInterceptedCall {
	
	public static void main(String[] args) {
		System.out.println("Remember to use ./startWithInterceptors.sh "+TestInterceptedCall.class.getName()+" ");
		TestService testService = ServiceLocator.getRemote(TestService.class);
		long duration = 3000;
		try{
			duration = Integer.parseInt(args[0]);
		}catch(Exception ignored){}
		testService.sleepingCall(duration);
		System.out.println("Call finished");
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy