Hession 调用 共同引用hessian-4.0.7.jar
//调用端
HessianProxyFactory factory = new HessianProxyFactory();
String url = ("http://localhost/hessian-service/hello");
ITest basic = (ITest) factory.create(ITest.class,url);
//ITest 为共同引用接口
//被调用端web.xml
<servlet>
<servlet-name>hello</servlet-name>
<servlet-class>com.caucho.hessian.server.HessianServlet</servlet-class>
<init-param>
<param-name>service-class</param-name>
<param-value>com.TestImpl</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>hello</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>
//com.TestImpl为ITest实现类