source: ComponentRegistry/trunk/ComponentRegistry/src/test/resources/spring-config/datasource-hsqldb.xml @ 1944

Last change on this file since 1944 was 1944, checked in by twagoo, 12 years ago

Test packages: schema location in spring config refers to classpath, no longer web URL (solves issues when spring server is down or unreachable!)
Consider doing the same for the main spring config

File size: 813 bytes
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<beans xmlns="http://www.springframework.org/schema/beans"
3       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4       xsi:schemaLocation="http://www.springframework.org/schema/beans classpath:/org/springframework/beans/factory/xml/spring-beans-2.5.xsd">
5    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
6        <property name="driverClassName" value="org.hsqldb.jdbcDriver"/>
7        <property name="url" value="jdbc:hsqldb:mem:component_registry;sql.syntax_pgs=true"/>
8        <property name="username" value="sa"/>
9        <property name="password" value=""/>
10    </bean>
11
12    <bean id="jdbcTemplate"
13        class="org.springframework.jdbc.core.JdbcTemplate">
14        <property name="dataSource" ref="dataSource"/>
15    </bean>
16</beans>
Note: See TracBrowser for help on using the repository browser.