| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:context="http://www.springframework.org/schema/context"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context.xsd">
- <context:component-scan base-package="id.co.hanoman.btn.rekon" />
- <!-- java:comp/env/ -->
- <bean id="mwappDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
- <property name="jndiName" value="jdbc/db2/mwapp_rekon_ds" />
- <property name="defaultObject" ref="developmentDataSource" />
- </bean>
-
- <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
- <property name="jndiName" value="jdbc/db2/mwapp_rekon_ds" />
- <property name="defaultObject" ref="developmentDataSource" />
- </bean>
-
- <!-- fall back datasource if JNDI look up of main datasource fails -->
- <bean id="developmentDataSource" class="org.apache.commons.dbcp.BasicDataSource"
- destroy-method="close">
- <property name="driverClassName" value="${jdbc.driverClassName}" />
- <property name="url" value="${jdbc.url}" />
- <property name="username" value="${jdbc.username}" />
- <property name="password" value="${jdbc.password}" />
- <property name="initialSize">
- <value>10</value>
- </property>
- <property name="maxActive">
- <value>100</value>
- </property>
- <property name="maxWait">
- <value>5000</value>
- </property>
- </bean>
-
- <bean id="mwlogDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
- <property name="jndiName" value="jdbc/db2/mwlog_rekon_ds" />
- <property name="defaultObject" ref="developmentMwLogDataSource" />
- </bean>
-
- <!-- fall back datasource if JNDI look up of main datasource fails -->
- <bean id="developmentMwLogDataSource" class="org.apache.commons.dbcp.BasicDataSource"
- destroy-method="close">
- <property name="driverClassName" value="${jdbc.driverClassName}" />
- <property name="url" value="${jdbc.mwlog.url}" />
- <property name="username" value="${jdbc.username}" />
- <property name="password" value="${jdbc.password}" />
- <property name="initialSize">
- <value>10</value>
- </property>
- <property name="maxActive">
- <value>100</value>
- </property>
- <property name="maxWait">
- <value>5000</value>
- </property>
- </bean>
- <bean id="mwtempDatasource" class="org.springframework.jndi.JndiObjectFactoryBean">
- <property name="jndiName" value="jdbc/db2/mwtemp_rekon_ds" />
- <property name="defaultObject" ref="devMwtempDataSource" />
- </bean>
-
- <!-- fall back datasource if JNDI look up of main datasource fails -->
- <bean id="developmentMwtempDataSource" class="org.apache.commons.dbcp.BasicDataSource"
- destroy-method="close">
- <property name="driverClassName" value="${jdbc.driverClassName}" />
- <property name="url" value="${jdbc.mwtemp.url}" />
- <property name="username" value="${jdbc.username}" />
- <property name="password" value="${jdbc.password}" />
- <property name="initialSize">
- <value>10</value>
- </property>
- <property name="maxActive">
- <value>100</value>
- </property>
- <property name="maxWait">
- <value>5000</value>
- </property>
- </bean>
-
- <!-- fall back datasource if JNDI look up of main datasource fails -->
- <bean id="devMwtempDataSource" class="org.apache.commons.dbcp.BasicDataSource"
- destroy-method="close">
- <property name="driverClassName" value="${jdbc.driverClassName}" />
- <property name="url" value="${jdbc.dev.mwtemp.url}" />
- <property name="username" value="${jdbc.dev.username}" />
- <property name="password" value="${jdbc.dev.password}" />
- <property name="initialSize">
- <value>10</value>
- </property>
- <property name="maxActive">
- <value>0</value>
- </property>
- <property name="maxWait">
- <value>5000</value>
- </property>
- </bean>
-
- <bean id="propertyConfigurer"
- class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
- <property name="locations">
- <list>
- <value>WEB-INF/jdbc.properties</value>
- </list>
- </property>
- </bean>
- <bean id="transactionManager"
- class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
- <property name="dataSource" ref="dataSource" />
- </bean>
-
- <bean id="servletContext" class="org.springframework.web.context.support.ServletContextFactoryBean"/>
-
- <bean id="webInfPath" class="id.co.hanoman.shared.ContextPathFactory" factory-method="getContextPath" >
- <constructor-arg type="javax.servlet.ServletContext" ref="servletContext" />
- <constructor-arg type="java.lang.String" value="WEB-INF" />
- </bean>
-
- <bean id="persistanceFactory" class="id.co.hanoman.shared.PersistanceServiceFactory">
- <property name="servletContext" ref="servletContext" ></property>
- </bean>
-
- <bean class="id.co.hanoman.btn.utils.SQLConnection">
- <property name="mwappDataSource" ref="dataSource"></property>
- <property name="mwtempDataSource" ref="mwtempDatasource"></property>
- <property name="mwlogDataSource" ref="mwlogDataSource"></property>
- </bean>
-
- <bean id="appDaoClient" factory-bean="persistanceFactory" factory-method="getAppDaoClient"></bean>
- <bean id="configDaoClient" factory-bean="persistanceFactory" factory-method="getConfigDaoClient"></bean>
-
- <bean id="appUserValidation" class="id.co.hanoman.ePayment.validation.AppUserValidation">
- <property name="psi" ref="appDaoClient"></property>
- </bean>
- </beans>
|