Hi all,
i'm using hibernate 3.1.3 with websphere 6.0.
I have this problem: Container managed session bean throws exception but changes are commited to database.
Could anybody check my configuration of hibernate
hibernate.cfg.xml:
Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.session_factory_name">hibernate/Excom2HibernateFactory</property>
<property name="hibernate.connection.datasource">jdbc/Excom2DS</property>
<property name="show_sql">false</property>
<property name="dialect">com.pxpfs.utilities.hibernate3.ExcomH3SQLServerDialect</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
<property name="hibernate.transaction.flush_before_completion">true</property>
<property name="hibernate.transaction.auto_close_session">true</property>
<!-- Mapping files -->
.......
</session-factory>
</hibernate-configuration>
I dont do any flush,close, session operation
I tried to use CMTTransactionFactory too but the same result, results are stored to database.