XFire的部分配置:(原创额!)
<!-- XFire 配置Start -->
<bean id="namingTransactionAttribute"
class="org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource">
<property name="properties">
<props>
<prop key="insert*">PROPAGATION_REQUIRED</prop>
<prop key="create*">PROPAGATION_REQUIRED</prop>
<prop key="update*">PROPAGATION_REQUIRED</prop>
<prop key="save*">PROPAGATION_REQUIRED</prop>
<prop key="del*">PROPAGATION_REQUIRED</prop>
<prop key="*">PROPAGATION_REQUIRED,readOnly</prop>
</props>
</property>
</bean>
<bean id="baseTransactionProxy"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"
abstract="true">
<property name="transactionManager" ref="transactionManager" />
<property name="transactionAttributeSource">
<ref bean="namingTransactionAttribute" />
</property>
</bean>
<!-- 高级查询Start -->
<bean id="StatisticalQueryService" parent="baseWebService">
<!-- 业务服务bean -->
<property name="serviceBean" ref="baseServiceOfStatisticalQueryService" />
<!-- 业务服务bean的窄接口类 -->
<property name="serviceClass" value="com.hjdf.cnmsa.law.service.StatisticalQueryService" />
</bean>
<bean id="baseServiceOfStatisticalQueryService" parent="baseTransactionProxy">
<property name="proxyInterfaces">
<list>
<value>com.hjdf.cnmsa.law.service.StatisticalQueryService</value>
</list>
</property>
<property name="target">
<ref bean="baseserviceTargetOfStatisticalQueryService" />
</property>
</bean>
<!-- StatisticalQueryDao 要区分 注解:@Repository(value = "statisticalQueryDao") 否则报NullPoint异常 -->
<bean id="baseserviceTargetOfStatisticalQueryService" class="com.hjdf.cnmsa.law.service.impl.StatisticalQueryServiceImpl">
<property name="StatisticalQueryDao">
<ref bean="StatisticalQueryDao" />
</property>
</bean>
<bean id="StatisticalQueryDao" class="com.hjdf.cnmsa.law.dao.impl.StatisticalQueryDaoImpl">
<property name="sessionFactory">
<ref bean="sessionFactory"></ref>
</property>
</bean>
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml" />
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="urlMap">
<map>
<entry key="/StatisticalQueryService.ws">
<list>
<ref bean="StatisticalQueryService" />
</list>
</entry>
</map>
</property>
</bean>
<!-- 高级查询End -->
<bean id="punishmentSnapshotDao" class="com.hjdf.cnmsa.law.dao.impl.PunishmentSnapshotDaoImpl">
<property name="sessionFactory">
<ref bean="sessionFactory"></ref>
</property>
</bean>
<bean id="baseserviceTarget" class="com.hjdf.cnmsa.law.service.impl.PunishmentSnapshotServiceImpl">
<property name="punishmentSnapshotDao">
<ref bean="punishmentSnapshotDao" />
</property>
</bean>
<bean id="baseService" parent="baseTransactionProxy">
<property name="proxyInterfaces">
<list>
<value>com.hjdf.cnmsa.law.service.PunishmentSnapshotService</value>
</list>
</property>
<property name="target">
<ref bean="baseserviceTarget" />
</property>
</bean>
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml" />
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="urlMap">
<map>
<entry key="/PunishmentSnapshotService.ws">
<list>
<ref bean="PunishmentSnapshotService" />
</list>
</entry>
</map>
</property>
</bean>
<bean id="baseWebService" class="org.codehaus.xfire.spring.remoting.XFireExporter"
lazy-init="false" abstract="true">
<!-- 引用xfire.xml中定义的工厂 -->
<property name="serviceFactory" ref="xfire.serviceFactory"/>
<!-- 引用xfire.xml中的xfire实例 -->
<property name="xfire" ref="xfire" />
</bean>
<bean id="PunishmentSnapshotService" parent="baseWebService">
<!-- 业务服务bean -->
<property name="serviceBean" ref="baseService" />
<!-- 业务服务bean的窄接口类 -->
<property name="serviceClass" value="com.hjdf.cnmsa.law.service.PunishmentSnapshotService" />
</bean>
<!-- XFire 配置End -->
相关推荐
xfire开发web service文档.rar xfire开发web service文档.rar xfire开发web service文档.rar 含说明+步骤图片
xfire开发Web Service接口详解,里面包含图片和文字,适合初学web service的
xfire开发Web Service接口第一个程序源代码,创建的过程及图解请找我发布的"xfire开发Web Service接口第一个程序"的资源
初步了解XFire,让你对xfire有一个初步了解,
第一章 WEB SERVICE基础 3 一:WEB SERVICE是什么? 3 1>ANYTIME ,ANYWHERE ,ANYDEVICE 3 二:为什么学习WEB ...第三章:XFIRE开发WEB SERVICE 16 1.XFIRE简介 17 2.XFIRE特点 17 3.ECLIPSE+XFIRE开发WEB SERIVCE 17
第十五章 开发XFire Web Service应用22.pdf第十五章 开发XFire Web Service应用22.pdf第十五章 开发XFire Web Service应用22.pdf第十五章 开发XFire Web Service应用22.pdf第十五章 开发XFire Web Service应用22.pdf...
第十五章 开发XFire Web Service应用.pdf第十五章 开发XFire Web Service应用.pdf第十五章 开发XFire Web Service应用.pdf第十五章 开发XFire Web Service应用.pdf
web service xfire 很实用的东西,希望能帮助大家。我也正在学习web service大家可以一起研究
MyEclipse 6 Java 开发中文教程第15章 开发XFire Web Service应用.pdf
XFire 是与Axis 2并列的新一代Web Service框架,通过提供简单的API支持Web Service各项标准协议,帮助你方便快速地开发Web Service应用。 相对于Axis来说,目前XFire相对受欢迎,加上其提供了和Spring集成的支持,在...
xfire开发与学习文档,xfire开发与学习文档,xfire开发与学习文档,xfire开发与学习文档。
eclipse下的使用Xfire开发webservice
Web Service XFire框架开发指南,pdf格式
MyEclipse实战开发讲解入门XFire.Web.Service.入门
实现功能与特点 基于 J2EE 平台的 Web Service 服务 开发方便,配置简单 设计接口 实现服务 配置暴露接口 XFire 将自动生成对应的wsdl 支持高级详细配置 与 Spring 无缝集成
我整理了一下使用XFire1.2.6进行Web Service开发的思路,尝试完成了一个入门实例(完整的MyEclipse项目)。如果你正在学习Web Service或者对这个有兴趣,你可以下载该附件,导入MyEclipse中运行以查看示例效果。希望...
介绍WEB service和axis ,xfire,CXF的使用,例子多,适合学习。
Web Service开发指南 学习Web Service的工具包AXIS xfire,cxf开发方式。
刘长炯的MyEclipse 6 Java 开发中文教程第十五章
xFire开发入门的入门教程 本文介绍了使用MyEclipse Web Service来迅速开发和测试一个HelloWorld Web Service,其中包括: 1. 介绍了MyEclipse Web Services的基本概念 2. 创建一个MyEclipse Web Services工程 3...