Hi,
I'm using Hibernate Search 4.1 with Lucene. I want to use this feature that
controls indexing from JMX IndexControlMBean
http://docs.jboss.org/hibernate/search/4.1/reference/en-US/html_single/#d0e6897
It requires hibernate.session_factory_name to be bound in JNDI. What value
should I use in peristence.xml? Keep in mind I use JPA.
Here is my persistence.xml that works well in Tomee 1.0 and Hibernate 4.1:
<persistence-unit name="prod-PU" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>myDS</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
<properties>
<property name="hibernate.dialect"
value="org.hibernate.dialect.PostgreSQLDialect" />
<property name="hibernate.hbm2ddl.auto"
value="validate" />
<property name="hibernate.jdbc.batch_size" value="0" />
<property name="hibernate.show_sql" value="false" />
<property name="hibernate.generate_statistics"
value="true" />
<property name="hibernate.cache.use_query_cache"
value="false" />
<property name="hibernate.cache.use_second_level_cache"
value="false"/>
<property name="hibernate.cache.infinispan.statistics"
value="true"/>
<property name="hibernate.cache.region.factory_class"
value="org.hibernate.cache.infinispan.InfinispanRegionFactory"/>
<property name="hibernate.cache.use_minimal_puts"
value="true"/>
</properties>
</persistence-unit>
--
View this message in context:
http://openejb.979440.n4.nabble.com/Tomee-Hibernate-Session-JNDI-tp4655576.html
Sent from the OpenEJB User mailing list archive at Nabble.com.