Wrox Home  
Search P2P Archive for: Go

  Return to Index  

j2ee thread: User Transaction -- Cannot rollback using WLS


Message #1 by "Shannen" <glnnca@a...> on Thu, 12 Sep 2002 04:10:07
The problem is the way you coded is using JDBC user transaction, refer to the J2EE transaction specification, nothing to do with WLS
setting.
 Edward de Jongh wrote:Try selecting the enable 2 phase commit and make sure you are using an XA
type driver for handling distributed transactions.

-----Original Message-----
From: lang_liu@h... [mailto:lang_liu@h...] 
Sent: 13 September 2002 9:10 AM
To: Java 2 Enterprise Edition
Subject: [j2ee] Re: User Transaction -- Cannot rollback using WLS

Why not update your WLS to 7 version?
You can download a Evaluation version from bea.com.
If it also can't rollback. 
Please let me know and send over me your configl.xml file.
I will check your configuration of WLS.

Good luck.
Liamliu

From: "Shannen" 
Reply-To: "Java 2 Enterprise Edition" 
To: "Java 2 Enterprise Edition" 
Subject: [j2ee] User Transaction -- Cannot rollback using WLS
Date: Thu, 12 Sep 2002 04:10:07

Hi

I am trying to update 2 database. I use the JTA to ensure that if an
error occurs when updating 1 database, the other will rollback.

My code is something like this,
UserTransaction.begin();
UserTransaction.commit();

try{
UserTransaction.rollback();
} catch (Exception e) {
}

However, it does not rollback when an error occurs. I am WLS 6.1, is
there any setting that I need to set as I don't think that the problems
lies in my code.

Thanks in advance for your help!

Regards
Shannen




_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: 
http://messenger.microsoft.com/cn





Thank you, 

Neo Gigs

http://communities.msn.com.my/VisualBasicwithNeo 
http://www.smspays.com/reg_country.asp?refer=110009 
Note: This is to addressees only, revert if wish to unload from mailing list.



---------------------------------
Do you Yahoo!?
Yahoo! News - Today's headlines

  Return to Index