tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamtho <thamac...@project-team.de>
Subject How to enable/disable Hibernate EntityManager
Date Fri, 06 Feb 2009 10:14:24 GMT

Hi,

I´m still struggling with the EXTENDED Persistence context and
EntityManager.
Maybe it has anything to do, because i use the Hibernate EntityManager.
But I´ve got the strange behaviour, that in one test case - which works
(!!!) - only the Hibernate-Session is loaded while openEJB starts up and in
the other test case - which does not work - the HibernateEntityManager is
used.
The persistence.xml is identical in both cases.

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
	<persistence-unit name="IisPU">
		<jta-data-source>gerdaDatabase</jta-data-source>
		 <non-jta-data-source>gerdaDatabaseUnmanaged</non-jta-data-source> 
		 <provider>org.hibernate.ejb.HibernatePersistence</provider>
		 
		<properties>
			<property name="hibernate.hbm2ddl.auto" value="update" />
			<property name="openjpa.jdbc.SynchronizeMappings"
value="buildSchema(ForeignKeys=true)" />
		 <property name="hibernate.transaction.manager_lookup_class"
value="ch.bmw.service.DynamicTransactionManagerLookup"/>
		
		</properties>
	</persistence-unit>
</persistence>

Is there any chance to control wheater openEJB should use Hibernate or
HibernateEntityManager or what is the strategy of openEJB to decide which
implementation to load?

Maybe someone can help

Thomas
-- 
View this message in context: http://www.nabble.com/How-to-enable-disable-Hibernate-EntityManager-tp21869752p21869752.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message