-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problem in rollback using CMTTransactionFactory in weblogic
PostPosted: Fri Mar 24, 2006 10:35 am 
Beginner
Beginner

Joined: Fri Nov 18, 2005 5:49 am
Posts: 23
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.