seam hessian flamigo集成的一些技巧。

1、直接将flamigo的jar文件:

flamingo-service-2.2.0.jar

/flamingo-services-common-2.2.0.jar

放在lib中即可,访问的地址是:

/seam/resource/hessian/seam组件的名字。

 

其中seam/resouce 是seam sevelet的映射路径。

 

2、客户端请注意:

用:FlamingoHessianProxyFactory factory = new FlamingoHessianProxyFactory();

代替:HessianProxyFactory。

 

不然返回字符串,简单对象没问题,但是返回pojo或者list之类的java对象会报错误。诸如0x74之类的。

com.caucho.hessian.io.HessianProtocolException: expected integer at 0x6c

com.caucho.hessian.io.HessianProtocolException: expected integer at 0x74

你可能感兴趣的:(seam)