| <?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" |
| > |
| |
| <bean id="transactionManager" class="org.apache.geronimo.transaction.manager.GeronimoTransactionManager"/> |
| |
| <jencks:connectionTracker id="connectionTracker" geronimoTransactionManager="#transactionManager" /> |
| |
| <jencks:workManager |
| id="workManager" |
| threadPoolSize="200" |
| transactionManager="#transactionManager" /> |
| |
| <jencks:bootstrapContext |
| id="bootstrapContext" |
| workManager="#workManager" |
| transactionManager="#transactionManager" /> |
| |
| <jencks:poolingSupport |
| id="poolingSupport" |
| connectionMaxIdleMinutes="5" |
| poolMaxSize="20" |
| /> |
| |
| <jencks:connectionManager |
| id="connectionManager" |
| containerManagedSecurity="false" |
| transaction="local" |
| transactionManager="#transactionManager" |
| poolingSupport="#poolingSupport" |
| connectionTracker="#connectionTracker" |
| /> |
| |
| <bean id="odeMCF" class="org.tranql.connector.derby.EmbeddedLocalMCF"> |
| <property name="databaseName" value="target/test/smx/ode/derby-hibdb"/> |
| <property name="createDatabase" value="false"/> |
| <property name="userName" value = "sa"/> |
| <property name="password" value = ""/> |
| </bean> |
| <!-- |
| <bean id="odeMCF" class="org.tranql.connector.oracle.LocalMCF"> |
| <property name="databaseName" value="XE"/> |
| <property name="userName" value="ode12"/> |
| <property name="password" value="ode12"/> |
| <property name="portNumber" value="1521"/> |
| <property name="serverName" value="localhost"/> |
| <property name="driverType" value="thin"/> |
| </bean> |
| --> |
| |
| <bean id="odeDS" class="org.jencks.factory.ConnectionFactoryFactoryBean"> |
| <property name="managedConnectionFactory" ref="odeMCF"/> |
| <property name="connectionManager" ref="connectionManager"/> |
| </bean> |
| |
| <bean id="jndi" |
| class="org.apache.xbean.spring.jndi.SpringInitialContextFactory" |
| factory-method="makeInitialContext" |
| singleton="true" |
| depends-on="bootstrapContext" |
| > |
| <property name="entries" ref="jndiEntries" /> |
| </bean> |
| </beans> |