xfire+spring 配置

<beans xmlns="http://www.springframework.org/schema/beans"     
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"     
        xmlns:context="http://www.springframework.org/schema/context" 
         xmlns:tx="http://www.springframework.org/schema/tx"
          xmlns:aop="http://www.springframework.org/schema/aop"   
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd   
       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd   
       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd   
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
       <!--   
        <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
	<property name="locations">
		<list>
			<value>WEB-INF\database.properties</value>
		</list>
	</property>
</bean>
       

--><import resource="classpath:org/codehaus/xfire/spring/xfire.xml" />
<bean id="baseWebService" class="org.codehaus.xfire.spring.remoting.XFireExporter" lazy-init="false" abstract="true"> 
<property name="serviceFactory" ref="xfire.serviceFactory" /> 
<property name="xfire" ref="xfire" /> 
</bean> 
<bean id="userWS" class="org.ave7.xfire.ws.UserServiceImpl"></bean> 
<bean id="userService" parent="baseWebService">
 <property name="serviceBean" ref="userWS" /> 
 <property name="serviceClass" value="org.ave7.xfire.ws.UserService" /> 
 </bean>
</beans>
 

猜你喜欢

转载自zac110.iteye.com/blog/1119759
今日推荐