i am facing the above problem when i tried to integrate hibernate with
drools.....
Anyone used hibernate with drools? If so, what is the transaction manager
setting for hibernate + drools + tomcat.... i am trying to use the default
transaction manager or the jpa transaction manager implementation from
spring....like the one below... but running into the above error....
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="persistenceUnitName"
value="rascalflow-persistence" />
<property name="persistenceProvider">
<bean class="org.hibernate.ejb.HibernatePersistence" />
</property>
<property name="jpaVendorAdapter">
<bean id="jpaVendorAdapter"
class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="database" value="ORACLE" />
<property name="showSql" value="true" />
</bean>
</property>
<property name="jpaPropertyMap">
<map>
<entry key="hibernate.connection.driver_class"
value="oracle.jdbc.driver.OracleDriver" />
<entry key="hibernate.max_fetch_depth" value="3" />
<entry key="hibernate.hbm2ddl.auto" value="update" />
<entry key="hibernate.show_sql" value="true" />
<entry key="hibernate.dialect"
value="org.hibernate.dialect.Oracle10gDialect" />
<entry key="hibernate.transaction.factory_class"
value="org.hibernate.transaction.JDBCTransactionFactory" />
<!-- <entry key="hibernate.transaction.manager_lookup_class"
value="org.springframework.transaction.jta.JtaTransactionManager" /> -->
</map>
</property>
</bean>
<bean id="transactionManager"
class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory"
ref="entityManagerFactory" />
</bean>
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/IllegalStateException...
Sent from the Drools - User mailing list archive at
Nabble.com.