日期:2014-05-20  浏览次数:20711 次

XFire的问题
我想问一下各位用过xfire的朋友,我今天浏览了一下xfire开发指南的一本电子书 
看到后面POJO的返回方式有好多种实现方式,JSR181,Aegis绑定,JAXB2绑定, 
JIBX绑定等等好多种实现方式,请问一下在xfire的诸多POJO发布实现方式中哪一种最 
方便快捷省事,还有重点学一种绑定方式就可以了吧?还须要把每一种绑定实现方式都掌握了吗?
大家给介绍介绍,我重点学一个好了。

------解决方案--------------------
Aegis绑定

/** 
* 作者:曹坤 
* 日期:2007-5-16 
*/ 

package com.export; 

import java.util.Collection; 

import org.springframework.dao.DataAccessException


/** 
* @author 曹坤 

*/ 
public interface Iquery { 


public Collection GetYspb(String gzrq) throws DataAccessException; 

public Collection GetYspb(String gzrq,Long xzpb) throws DataAccessException; 

public Collection GetYgdm(String ygdm) throws DataAccessException; 



Iquery.aegis.xml文件 

<?xml version="1.0" encoding="UTF-8"?> 


<mappings> 
<mapping> 
<method name= "GetYspb" > 
<return-type componentType= "com.exportclass.HisYspb" /> 

</method>

<method name="GetYgdm"> 
<return-type componentType="com.exportclass.HisYgdm"> </return-type> 
</method>


</mapping> 


</mappings>