<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>

	<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
	    <property name="urlMap">
	        <map>
	            <entry key="/TransactionManager">
	                <ref bean="transactionmanager"/>
	            </entry>
	        </map>
	    </property>
	</bean>
	
	<!-- Declare a parent bean with all properties common to both services -->
	<bean name="transactionmanager" class="org.codehaus.xfire.spring.remoting.XFireExporter">
	    <property name="serviceFactory">
	        <ref bean="xfire.serviceFactory"/>
	    </property>
	    <property name="xfire">
	        <ref bean="xfire"/>
	    </property>
	    <property name="serviceBean">
	        <ref bean="transactionBean"/>
	    </property>
	    <property name="serviceClass">
	        <value>com.celadon.core.api.services.TransactionManager</value>
	    </property>
	</bean>
	<bean id="transactionBean" class="com.celadon.core.server.services.TransactionService"/>
	
</beans>

