<?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-3.0.xsd ">

	<!-- Initialization for data source -->
	<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
		<property name="jndiName" value="java:/EzLightDS" />
	</bean>
	<bean id="dataSourceStore" class="org.springframework.jndi.JndiObjectFactoryBean">
		<property name="jndiName" value="java:/EzStoreDS" />
	</bean>
<!-- 	<bean id="dataSource" -->
<!-- 		class="org.springframework.jdbc.datasource.DriverManagerDataSource"> -->
<!-- 		<property name="driverClassName" value="com.mysql.jdbc.Driver" /> -->
<!-- 		<property name="url" -->
<!-- 			value="jdbc:mysql://ezstore.vn:3306/ezlight_test?autoReconnect=true" /> -->
<!-- 		<property name="username" value="mbhrdsuser" /> -->
<!-- 		<property name="password" value="mbhrdsuser" /> -->
<!-- 	</bean> -->
<!-- 	<bean id="dataSourceStore" -->
<!-- 		class="org.springframework.jdbc.datasource.DriverManagerDataSource"> -->
<!-- 		<property name="driverClassName" value="com.mysql.jdbc.Driver" /> -->
<!-- 		<property name="url" -->
<!-- 			value="jdbc:mysql://ezstore.vn:3306/ezstore_test?autoReconnect=true" /> -->
<!-- 		<property name="username" value="mbhrdsuser" /> -->
<!-- 		<property name="password" value="mbhrdsuser" /> -->
<!-- 	</bean> -->
	<!-- define for UserDAO bean -->
	<bean id="UserDAO" class="ez.metrix.dao.UserDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for CustomerDAO bean -->
	<bean id="CustomerDAO" class="ez.metrix.dao.CustomerDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for EzOptionDAO bean -->
	<bean id="EzOptionDAO" class="ez.metrix.dao.EzOptionDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for CustomerTaskDAO bean -->
	<bean id="CustomerTaskDAO" class="ez.metrix.dao.CustomerTaskDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for CustomerProjectDAO bean -->
	<bean id="CustomerProjectDAO" class="ez.metrix.dao.CustomerProjectDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for UserGroupDAO bean -->
	<bean id="UserGroupDAO" class="ez.metrix.dao.UserGroupDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for CustomerFollowerDAO bean -->
	<bean id="CustomerFollowerDAO" class="ez.metrix.dao.CustomerFollowerDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for InvoiceDetailDAO -->
	<bean id="InvoiceDetailDAO" class="ez.metrix.dao.InvoiceDetailDAO">
		<property name="dataSource" ref="dataSourceStore" />
	</bean>
	<!-- define for CustomerNewsfeedDAO bean -->
	<bean id="CustomerNewsfeedDAO" class="ez.metrix.dao.CustomerNewsfeedDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for CustomerPostDAO bean -->
	<bean id="CustomerPostDAO" class="ez.metrix.dao.CustomerPostDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for SaleKpiDAO bean -->
	<bean id="SaleKpiDAO" class="ez.metrix.dao.SaleKpiDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for CustomerContactDAO bean -->
	<bean id="CustomerContactDAO" class="ez.metrix.dao.CustomerContactDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<bean id="UserDAOStore" class="ez.metrix.dao.UserDAO">
		<property name="dataSource" ref="dataSourceStore" />
	</bean>
	<!-- define for CustomerAttachmentDAO bean -->
	<bean id="CustomerAttachmentDAO" class="ez.metrix.dao.CustomerAttachmentDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for ClientDAO bean -->
	<bean id="ClientDAO" class="ez.metrix.dao.ClientDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for AccountDAO bean -->
	<bean id="AccountDAO" class="ez.metrix.dao.AccountDAO">
		<property name="dataSource" ref="dataSourceStore" />
	</bean>
	<!-- define for CustomerHubspotDAO bean -->
	<bean id="CustomerHubspotDAO" class="ez.metrix.dao.CustomerHubspotDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for CustomerStateDAO bean -->
	<bean id="CustomerStateDAO" class="ez.metrix.dao.CustomerStateDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for ActivityHubspotDAO bean -->
	<bean id="ActivityHubspotDAO" class="ez.metrix.dao.ActivityHubspotDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for DealHubspotDAO bean -->
	<bean id="DealHubspotDAO" class="ez.metrix.dao.DealHubspotDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for NoteHubspotDAO bean -->
	<bean id="NoteHubspotDAO" class="ez.metrix.dao.NoteHubspotDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for HubspotActivityDAO bean -->
	<bean id="HubspotActivityDAO" class="ez.metrix.dao.HubspotActivityDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for HubspotNoteDAO bean -->
	<bean id="HubspotNoteDAO" class="ez.metrix.dao.HubspotNoteDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for LastTimeSynchHubspotDAO bean -->
	<bean id="LastTimeSynchHubspotDAO" class="ez.metrix.dao.LastTimeSynchHubspotDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<bean id="CustomerHubspotBookDAO" class="ez.metrix.dao.CustomerHubspotBookDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for StateDAO bean -->
	<bean id="StateDAO" class="ez.metrix.dao.StateDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for LocationDAO bean -->
	<bean id="LocationDAO" class="ez.metrix.dao.LocationDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
	<!-- define for LocationDAO bean -->
	<bean id="CustomerCalculateCallLogDAO" class="ez.metrix.dao.CustomerCalculateCallLogDAO">
		<property name="dataSource" ref="dataSource" />
	</bean>
</beans>