码迷,mamicode.com
首页 > 其他好文 > 详细

初识 hessian--helloworld

时间:2015-07-27 00:26:17      阅读:1455      评论:0      收藏:0      [点我收藏+]

标签:

     说实话在这个知识大爆炸的年代里,真心是学无止境的呀,出来工作了见得世面也就广了,关于hessian这个名词是组长在讲入职第一天讲需求的时候提到的,当时都不知道hessian怎么写,通过一个多月对项目的了解,渐渐知道了hessian但是在项目中的运用我还是不很明白,也可见这个框架封装的很好,不过我这么有探索精神的孩子绝对不能就这样放过hessian这个知识点的,这次就来说说hessian这个轻量级的远程调用工具吧。
     其实说到远程调用我并不陌生,因为之前的高校项目就是基于远程调用的,所以了解其hessian来也并不困难,下面就从最简单的开始吧!     
一、hessian简介
     Hessian是一个轻量级的remoting on http工具,使用简单的方法提供了RMI的功能. 相比WebService,Hessian更简单、快捷。采用的是二进制RPC协议,因为采用的是二进制协议,所以它很适合于发送二进制数据。

二、helloworld
      了解一个新的技术点,首先从helloworld开始,下面就通过helloworld来看看hessian的使用吧!
1、首先创建web项目
技术分享
技术分享
2、分别创建服务接口和服务的实现,代码如下:
package com.tgb.hessian.service;
public interface HelloService {
    
    /**
     * hellworld 服务类接口
     * @author 陈丽娜
     * @version 2015年7月26日下午6:18:41
     * @return
     */
    public String HellowWorld(String name);
} 

package com.tgb.hessian.service.impl;
import com.tgb.hessian.service.HelloService;
/**
 * 服务实现类
 * @author 陈丽娜
 * @version 2015年7月26日下午9:17:03
 */
public class HelloServiceImpl implements HelloService {
    @Override
    public String HellowWorld(String name) {
        // TODO Auto-generated method stub
        return "hello" + name;
    }
}


3、引入hessian的jar包:
把jar引入到lib下
技术分享
技术分享
4、配置web.xml文件
<?xml ver<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPMAAADlCAYAAACGecG5AAAgAElEQVR4Ae19C3yUxbn+s9lkcw8hQUQRFEiCQijVVsSNouKlTSI2tDRqL0JVNociJGr588daD6eHI8eTajeitUmLJVBFqdUcgUSroEITuShKiUHYRbkrCCQEcifZ83tnv9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BAZkkEfEZAjaA8zTn0RXhIltlqCgWasGpt8LTj2ypxaPMz/NIWXj79EVw6dbbtWkYkAv2NACezP3r0G5nVlA0lWHhZrAAAAEBJREFUwdXal2kSgVAi0BfiqukZsmW2WuPOaYHunLN8eS0RiGQEgv6hRSSDJ/smEQgnBCSZw+luSF0kAn1A4P8AZ0yCs1Jxln0AAAAASUVORK5CYII=" alt="" />sion="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
  <display-name>HessianTest</display-name>
  
 
      <welcome-file-list>
         <welcome-file>index.jsp</welcome-file>
     </welcome-file-list>
 
     <servlet>
         <servlet-name>hessian-service</servlet-name>
         
         <servlet-class>
             com.caucho.hessian.server.HessianServlet
         </servlet-class>
         
         <init-param>            
             <param-name>home-class</param-name>            
             <param-value>
                 <!-- 服务实现类 -->
                 com.tgb.hessian.service.impl.HelloServiceImpl
             </param-value>
         </init-param>
 
         <init-param>            
             <param-name>home-api</param-name>
             <!-- 服务接口 -->
             <param-value>com.tgb.hessian.service.HelloService</param-value>
         </init-param>
 
     </servlet>
 
     <servlet-mapping>
         <servlet-name>hessian-service</servlet-name>
         <url-pattern>/hessian</url-pattern>
     </servlet-mapping>
</web-app>  


5、接口打成jar包
为了客户端的调用,需要将服务端接口打成jar以便客户端的调用。技术分享
技术分享
技术分享
技术分享
技术分享
技术分享

6、客户端调用
新建一个java项目,同样引入hessian的jar包,同时还需要引入上一步导出的jar包:
技术分享技术分享
技术分享
新建一个测试类:
package com.tgb.hessian.test;
import java.net.MalformedURLException;
import org.junit.Test;
import com.caucho.hessian.client.HessianProxyFactory;
import com.tgb.hessian.service.HelloService;
public class TestHessian {
        @Test
        public void  Test1() throws MalformedURLException {
            String url = "http://localhost:8080/HessianTest/hessian";
             System.out.println(url);
                
            HessianProxyFactory factory = new HessianProxyFactory();
            HelloService helloService = (HelloService) factory.create(HelloService.class, url);
            System.out.println(helloService.HellowWorld("陈丽娜"));
        }
}


运行结果如下:
技术分享技术分享

技术分享
经过这个简单的demo是不是觉得hessian很轻量级,很简单呢,下篇博客就来写写hessian与spring的结合吧!

版权声明:本文为博主原创文章,未经博主允许不得转载。

初识 hessian--helloworld

标签:

原文地址:http://blog.csdn.net/jly4758/article/details/47073165

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!