您的位置:jsp学习站首页 >> 框架/开源 >> Spring >> XFire在SpringSide中的应用

XFire在SpringSide中的应用 (1)

[ 来源:互网络 | 更新日期:2007-09-29 05:34:14 | 浏览次数:7095]
简介:xml中配置的:
  1. <?xml version="1
这一节,通过SpringSide来分析XFire的应用。

SpringSide开源项目是国内的开发人员所做的一个以Spring为核心的开源项目,目的是提供一个Pragmatic的企业应用开发基础和最佳实践展示。为使用Spring框架的开发者提供一个非Demo版的复杂、正式而体现最佳使用实践的参照系统。为JavaEEer必须面对的所有问题提供合理的、合乎Pragmatic原则的解决方案。采用Plugins形式组织,使开发者可快速定位所需的参考方案并做加法到自己的系统。

SpringSide中关于Web服务的配置是在WEB-IBF/classes文件下的applicationContext-webservice.xml中配置的:

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
  3. <beans>
  4.     <import resource="classpath:org/codehaus/xfire/spring/xfire.xml"/>
  5.     <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
  6.         <property name="mappings">
  7.             <value>/BookService=bookService</value>
  8.         </property>
  9.     </bean>
  10.  
  11.     <bean id="baseWebService" class="org.codehaus.xfire.spring.remoting.XFireExporter" abstract="true">
  12.         <property name="serviceFactory" ref="xfire.serviceFactory"/>
  13.         <property name="xfire" ref="xfire"/>
  14.     </bean>
  15.    
  16.     <bean id="bookService" parent="baseWebService">
  17.         <property name="serviceBean" ref="bookManager"/>
  18.         <property name="serviceClass" value="org.springside.bookstore.service.webservice.BookService"/>
  19.     </bean>
  20. </beans>

<
[1] [2] [3] [4] [5]
Tags:关键字:XFire在SpringSide中的应用
责任编辑:glen