Overriding hibernate.transaction.factory_class is dangerous, this might break the EJB3 specification implementation
I'm seeing this warning with Weblogic 10.3, JPA, Container Managed Transactions but have been unable to resolve it.
Can someone point me to the issue with my configuration?
Thanks,
-Bill
Code:
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSourceXA" />
<property name="persistenceUnitManager" ref="persistenceUnitManager" />
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="showSql" value="false" />
<property name="generateDdl" value="false" />
<property name="database" value="ORACLE" />
<property name="databasePlatform" value="org.hibernate.dialect.Oracle10gDialect" />
</bean>
</property>
<!-- configure Hibernate -->
<property name="jpaPropertyMap">
<map>
<entry key="javax.persistence.transactionType" value="jta" />
<entry key="hibernate.transaction.factory_class"
value="org.hibernate.ejb.transaction.JoinableCMTTransactionFactory" />
<entry key="hibernate.transaction.manager_lookup_class"
value="org.hibernate.transaction.WeblogicTransactionManagerLookup" />
<entry key="hibernate.current_session_context_class" value="org.hibernate.context.JTASessionContext" />
</map>
</property>
</bean>
<bean id="dataSourceXA" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="resourceRef">
<value>false</value>
</property>
<property name="jndiName">
<value>OracleXaDataSource</value>
</property>
</bean>
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="resourceRef">
<value>false</value>
</property>
<property name="jndiName">
<value>OracleDataSource</value>
</property>
</bean>
<bean id="transactionManager"
class="org.springframework.transaction.jta.WebLogicJtaTransactionManager"
autowire="default">
<property name="transactionManagerName" value="javax.transaction.TransactionManager" />
</bean>
<tx:annotation-driven transaction-manager="transactionManager" />