public static void invoke() throws Exception {
final Properties properties = new Properties();
properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, RemoteInitialContextFactory.class.getName());
properties.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201");
Context remoteContext = new InitialContext(properties);
CalculatorRemote calculator = (CalculatorRemote) remoteContext.lookup("CalculatorBeanRemote");
System.out.println("Server answered: " + calculator.sayHello());
}