<persistence-unit name="primary">
<!-- If you are running in a production environment, add a managed
data source, this example data source is just for devleopment and
testing! -->
<!-- The datasource is deployed as
WEB-INF/hibernate4-quickstart-ds.xml, you
can find it in the source at
src/main/webapp/WEB-INF/hibernate4-quickstart-ds.xml -->
<jta-data-source>java:jboss/datasources/Hibernate4QuickstartDS</jta-data-source>
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
<properties>
<!-- Properties for Hibernate -->
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
<property name="hibernate.show_sql" value="false" />
<property name="hibernate.cache.use_second_level_cache"
value="true"/>
<property
name="hibernate.cache.infinispan.org.jboss.as.quickstart.hibernate4.model.Member.cfg"
value="member-entity"/>
<property
name="hibernate.cache.infinispan.org.jboss.as.quickstart.hibernate4.model.Member.eviction.strategy"
value= "LRU"/>
<property
name="hibernate.cache.infinispan.org.jboss.as.quickstart.hibernate4.model.Member.eviction.wake_up_interval"
value= "1"/>
<property
name="hibernate.cache.infinispan.org.jboss.as.quickstart.hibernate4.model.Member.eviction.max_entries"
value= "1"/>
<property
name="hibernate.cache.infinispan.org.jboss.as.quickstart.hibernate4.model.Member.expiration.lifespan"
value= "1"/>
<property
name="hibernate.cache.infinispan.org.jboss.as.quickstart.hibernate4.model.Member.expiration.max_idle"
value= "1"/>
</properties>
</persistence-unit>