杭州.Mark 发表于 2012-12-30 16:39:41

Hessian解析及应用(整合Spring)

<div id="cnblogs_post_body">       Hessian是一个轻量级的remoting onhttp工具,使用简单的方法提供了RMI的功能。 相比WebService,Hessian更简单、快捷。------来自百度百科。
      看官网简介吧:http://hessian.caucho.com/index.xtp
      The Hessian binary web service protocol makes web services usable without requiring a large framework, and without learning yet another alphabet soup of protocols. Because it is a binary protocol, it is well-suited to sending binary data without any need to extend the protocol with attachments.
      此文使用hessian为hessian-4.0.7,源码及jar包请自行下载。------当然是java版了,咱也不会别的。
      开搞吧!
      除了提供下载,Hessian官网上貌似就下面几句话有用了(可能是Hessian使用起来很简单的原因吧)。
http://pic002.cnblogs.com/images/2012/471426/2012112717434115.png
      开搞吧,两个应用,Client(hessianclient)调用Server(hessianserver)提供的服务并展示返回内容。
      创建公共接口(单独打包成Jar,方便多个项目使用)。
<div class="cnblogs_code">package com.skyjoo.hessiancommon.interfaces;public interface HessianExampleInterface {    public String hello(String name);}
页: [1]
查看完整版本: Hessian解析及应用(整合Spring)