String url = "http://localhost:8080/HessianServer/hessianService";
HessianProxyFactory factory = new HessianProxyFactory();
factory.setUser("guxuede");
factory.setPassword("dg23hhjs");
try {
IEye hello = (IEye) factory.create(IEye.class, url);
hello.look();
} catch (MalformedURLException e) {
e.printStackTrace();
}
}