All Downloads are FREE. Search and download functionalities are using the official Maven repository.

e.simple-workflow.2.4.0.source-code.database-orderinstances-context.xml Maven / Gradle / Ivy

Go to download

Example of a simple workflow in a bundle. This workflow doesn't actually do anything.

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<!-- 
Copyright (c)2014 Prometheus Consulting

Licensed 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="http://www.springframework.org/schema/beans"
	xmlns:aop="http://www.springframework.org/schema/aop" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:tx="http://www.springframework.org/schema/tx" 
	xmlns:context="http://www.springframework.org/schema/context"
    xmlns:util="http://www.springframework.org/schema/util"
	xsi:schemaLocation=" 
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">

	<description>Object Spring Configuration</description>

	<tx:annotation-driven proxy-target-class="true" />

	<bean id="em-local"
		class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
		<property name="persistenceXmlLocation" value="classpath:/persistence-orderinstances.xml" />
		<property name="persistenceUnitName" value="pu-simple" />
		<property name="dataSource" ref="dataSourceLocal" />
		<property name="jpaVendorAdapter" ref="jpaVendorAdapter" />
		<property name="jpaDialect">
			<bean class="org.springframework.orm.jpa.vendor.HibernateJpaDialect" />
		</property>
		<property name="jpaProperties">
			<map>
				<entry key="hibernate.transaction.jta.platform" value="nz.co.senanque.hibernate.SpringJtaPlatformAdapter" />
				<entry key="hibernate.dialect" value="#{databaseConfigurer.dialect}" />
				<entry key="hibernate.format_sql" value="true" />
				<entry key="hibernate.connection.autocommit" value="false" />
			</map>
		</property>
	</bean>

    <bean id="dataSourceLocal" class="com.atomikos.jdbc.AtomikosDataSourceBean" init-method="init" destroy-method="close">
	    <property name="uniqueResourceName" value="${bundle.name}" />
	    <property name="xaDataSourceClassName" value="#{databaseConfigurer.datasourceClass}" />
	    <property name="xaProperties" value="#{databaseConfigurer.properties('orders')}"/>
	    <property name="maxPoolSize" value="#{databaseConfigurer.maxPoolSize}"/>
	    <property name="minPoolSize" value="#{databaseConfigurer.minPoolSize}"/>
	    <property name="borrowConnectionTimeout" value="#{databaseConfigurer.borrowConnectionTimeout}" />
	</bean>

    <bean id="persistenceAnnotation" class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />

</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy