You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by zo...@apache.org on 2010/03/05 23:23:56 UTC
svn commit: r919651 - in
/incubator/aries/trunk/samples/blog-sample/blog-datasource/src/main/resources:
./ OSGI-INF/ OSGI-INF/blueprint/ OSGI-INF/blueprint/dataSource.xml
Author: zoe
Date: Fri Mar 5 22:23:55 2010
New Revision: 919651
URL: http://svn.apache.org/viewvc?rev=919651&view=rev
Log:
ARIES-199 Add data source XML
Added:
incubator/aries/trunk/samples/blog-sample/blog-datasource/src/main/resources/
incubator/aries/trunk/samples/blog-sample/blog-datasource/src/main/resources/OSGI-INF/
incubator/aries/trunk/samples/blog-sample/blog-datasource/src/main/resources/OSGI-INF/blueprint/
incubator/aries/trunk/samples/blog-sample/blog-datasource/src/main/resources/OSGI-INF/blueprint/dataSource.xml
Added: incubator/aries/trunk/samples/blog-sample/blog-datasource/src/main/resources/OSGI-INF/blueprint/dataSource.xml
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/blog-sample/blog-datasource/src/main/resources/OSGI-INF/blueprint/dataSource.xml?rev=919651&view=auto
==============================================================================
--- incubator/aries/trunk/samples/blog-sample/blog-datasource/src/main/resources/OSGI-INF/blueprint/dataSource.xml (added)
+++ incubator/aries/trunk/samples/blog-sample/blog-datasource/src/main/resources/OSGI-INF/blueprint/dataSource.xml Fri Mar 5 22:23:55 2010
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+ default-activation="lazy">
+
+ <bean id="dataSourceWrapper" class="org.apache.aries.samples.blog.datasource.XADatasourceEnlistingWrapper">
+ <property name="txManager" ref="txManager"/>
+ <property name="dataSource" ref="derbyXADataSource"/>
+ </bean>
+
+ <bean id="derbyXADataSource" class="org.apache.derby.jdbc.EmbeddedXADataSource">
+ <property name="databaseName" value="blogDB"/>
+ </bean>
+
+ <service id="enlistingDataSource" ref="dataSourceWrapper" interface="javax.sql.DataSource">
+ <service-properties>
+ <entry key="xa.aware" value="true"/>
+ </service-properties>
+ </service>
+
+ <bean id="derbyDataSource" class="org.apache.derby.jdbc.EmbeddedDataSource">
+ <property name="databaseName" value="blogDB"/>
+ </bean>
+
+ <service ref="derbyDataSource" interface="javax.sql.DataSource">
+ <service-properties>
+ <entry key="xa.aware" value="false"/>
+ </service-properties>
+ </service>
+
+ <reference id="txManager" interface="javax.transaction.TransactionManager"/>
+</blueprint>
\ No newline at end of file