天天看點

hessian使用原理

public class BasicClient {

public static void main(String[] args) {

try {

String url = “http://localhost:8080/hessian”;

HessianProxyFactory factory = new HessianProxyFactory();

factory.setOverloadEnabled(true);

Basic basic = (Basic) factory.create(Basic.class, url);

System.out.println(basic.sayHello(“SW”));

}catch (Exception e){

e.printStackTrace();

}

}