Hi,
I am using Hibernate 3.0 with weblogic 9.0. Database is MSSQLServer 2000
I have done the necessary transaction attribute settings in my stateless session bean.
I have created the datasource using BEA MS SQL Server Driver (Type4 XA)
Also I have done the necessary settings in hibernate.cfg.xml file
<property name="transaction.factory_class">
org.hibernate.transaction.CMTTransactionFactory
</property>
<property name="transaction.manager_lookup_class">
org.hibernate.transaction.WeblogicTransactionManagerLookup
</property>
I insert a record to a table thro a stored procedure.
After that , I have one cond. If that cond fails I want to roll back the insertion.
So I am throwing runtimexception. There are no commit and rollback
I want the container to handle it.
But to my surpise , the rollback is not taking place.
pl help me. It is very crucial in our project
|