Last active
May 22, 2016 11:55
-
-
Save abhirockzz/581d4b2052760dbd6c1250d7e702bc2a to your computer and use it in GitHub Desktop.
A JPA persistence.xml demonstrating usage of L2 caching config parameter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> | |
<persistence-unit name="jap-punitxml-testPU" transaction-type="JTA"> | |
<exclude-unlisted-classes>false</exclude-unlisted-classes> | |
............... | |
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode> | |
<properties> | |
<property name="javax.persistence.query.timeout" value="3000"/> | |
<property name="javax.persistence.lock.timeout" value="2000"/> | |
</properties> | |
............... | |
</persistence-unit> | |
</persistence> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment