<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
	 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

	<!-- MovieService -->
	<bean id="anyframe.sample.movie.MovieService"
		class="anyframe.sample.movie.impl.MovieServiceImpl">
		<property name="movieDAO">
			<ref bean="movieDAO" />
		</property>
	</bean>

	<bean id="movieDAO" class="anyframe.sample.movie.impl.MovieDAODefaultImpl" />
	
	<!-- Add RMI ServiceExporter -->
	<bean class="org.springframework.remoting.rmi.RmiServiceExporter">
		<property name="serviceName" value="MovieService" />
		<property name="service" ref="anyframe.sample.movie.MovieService" />
		<property name="serviceInterface" value="anyframe.sample.movie.MovieService" />
		<!-- defaults to 1099 
		<property name="registryPort" value="1199" />-->
	</bean>

</beans>



