| <?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. |
| |
| --> |
| <beans xmlns:sm="http://servicemix.apache.org/config/1.0" |
| xmlns:http="http://servicemix.apache.org/http/1.0" |
| xmlns:eip="http://servicemix.apache.org/eip/1.0" |
| xmlns:util="http://www.springframework.org/schema/util" |
| xmlns:jencks="http://jencks.org/2.0" |
| > |
| <jencks:poolingSupport |
| id="poolingSupport2" |
| connectionMaxIdleMinutes="5" |
| poolMaxSize="20" |
| /> |
| |
| <jencks:connectionManager |
| id="connectionManager2" |
| containerManagedSecurity="false" |
| transaction="local" |
| transactionManager="#transactionManager" |
| poolingSupport="#poolingSupport2" |
| connectionTracker="#connectionTracker" |
| /> |
| <bean id="localDerbyMCF" class="org.tranql.connector.derby.EmbeddedLocalMCF"> |
| <property name="databaseName" value="target/test/testdb"/> |
| <property name="createDatabase" value="true"/> |
| <property name="userName" value = "sa"/> |
| <property name="password" value = ""/> |
| </bean> |
| <bean id="localDerbyDataSource" class="org.jencks.factory.ConnectionFactoryFactoryBean"> |
| <property name="managedConnectionFactory" ref="localDerbyMCF"/> |
| <property name="connectionManager" ref="connectionManager2"/> |
| </bean> |
| |
| <util:map id="jndiEntries"> |
| <entry key="java:comp/env/jdbc/ode" value-ref="odeDS"/> |
| <entry key="java:comp/UserTransaction" value-ref="transactionManager" /> |
| <entry key="testds" value-ref="localDerbyDataSource"/> |
| </util:map> |
| |
| <sm:container |
| id="jbi" |
| embedded="true" |
| rootDir="target/test/smx" |
| transactionManager="#transactionManager" |
| depends-on="jndi" |
| > |
| </sm:container> |
| </beans> |