Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Datasource connection settings in Spring
- <bean id="springDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" >
- <property name="url" value="jdbc:oracle:thin:@localhost:1521:SPRING_TEST" />
- <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
- <property name="username" value="root" />
- <property name="password" value="root" />
- <property name="removeAbandoned" value="true"/>
- <property name="initialSize" value="20" />
- <property name="maxActive" value="30" />
- </bean>
- //Dao class configuration in spring
- <bean id="EmployeeDatabaseBean" class="com.test.EmployeeDAOImpl">
- <property name="dataSource" ref="springDataSource"/>
- </bean>
Add Comment
Please, Sign In to add comment