Configured the 5.1.17-tutorials as integration-tests for the plugin
[hibernate4-maven-plugin] / src / it / tutorials-5.1.17 / osgi / datasource-h2.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Hibernate, Relational Persistence for Idiomatic Java
4   ~
5   ~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
6   ~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
7   -->
8
9 <!--
10 First install the H2 driver using:
11 > install -s mvn:com.h2database/h2/1.3.163
12
13 Then copy this file to the deploy folder
14 -->
15 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
16   
17   <bean id="dataSource" class="org.h2.jdbcx.JdbcDataSource">
18       <property name="URL" value="jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE"/>
19       <property name="user" value="sa"/>
20       <property name="password" value=""/>
21   </bean>
22   
23   <service interface="javax.sql.DataSource" ref="dataSource">
24     <service-properties>
25             <entry key="osgi.jndi.service.name" value="jdbc/h2ds"/>
26     </service-properties>
27   </service>
28 </blueprint>