How do I configure Hibernate Second Level Cache when using Native Hibernate in EAP 6?
Issue
-
Updating from Hibernate 3 and encountering an Infinispan-related XML error when using the
hibernate.cfg.xmlbelow:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property> <property name="connection.datasource">java:/jdbc/TestDataSource</property> <property name="hibernate.cache.region.factory_class">org.hibernate.cache.infinispan.InfinispanRegionFactory</property> <property name="hibernate.cache.use_second_level_cache">true</property> ...
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.