<?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.0.xsd">
<bean id="propertyconfigurer"
class="org.springframework.beans.factory.config.propertyplaceholderconfigurer">
<property name="location">
<value>web-inf/classes/jndi.properties</value>
</property>
</bean>
<bean id="jnditemplate"
class="org.springframework.jndi.jnditemplate">
<property name="environment">
<props>
<prop key="java.naming.provider.url">
${java.naming.provider.url}
</prop>
<prop key="java.naming.factory.initial">
${java.naming.factory.initial}
</prop>
<prop key="java.naming.factory.url.pkgs">
${java.naming.factory.url.pkgs}
</prop>
</props>
</property>
</bean>
<bean id="remotedao"
class="org.springframework.ejb.access.simpleremotestatelesssessionproxyfactorybean">
<property name="jnditemplate">
<ref local="jnditemplate"/>
</property>
<property name="jndiname" value="commondaoimpl/remote" />
<property name="businessinterface"
value="com.book.business.commondao" />
</bean>
</beans>