alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Spring Framework example source code file (persistence-complex.xml)

This example Spring Framework source code file (persistence-complex.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Spring Framework tags/keywords

it, it, jta, jta, resource_local, resource_local, this, this

The Spring Framework persistence-complex.xml source code

<persistence xmlns="http://java.sun.com/xml/ns/persistence"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
	version="1.0">
	
	<persistence-unit name="pu1" transaction-type="RESOURCE_LOCAL">
		<description>
			This unit manages inventory for auto parts. It depends on
			features provided by the com.acme.persistence
			implementation.
		</description>
		<provider>    com.acme.AcmePersistence
		<jta-data-source>jdbc/MyPartDB
		<mapping-file>  ormap2.xml
		<jar-file>   order.jar    
		<properties>
			<property name="com.acme.persistence.sql-logging" value="on"/>
			<property name="foo" value="bar" />
		</properties>
	</persistence-unit>

	<persistence-unit name="pu2" transaction-type="JTA">
		<provider> com.acme.AcmePersistence  
		<non-jta-data-source>jdbc/MyDB  
		<mapping-file>order2.xml 
		<jar-file>   order-*.jar
		<exclude-unlisted-classes />
	</persistence-unit>

</persistence>

Other Spring Framework examples (source code examples)

Here is a short list of links related to this Spring Framework persistence-complex.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.