Also said that I said it is too simple. In fact, I am a lazy, I don't know, I don't know, I will record the blog as a record. Let's talk about it, the platform (Windows2000 SQLServer2000 MSJDBC WebLogic Eclipse Lomboz), the basic configuration is not introduced, do not understand, please go. Specific steps: 1: First go to Microsoft website under the latest JDBC driver and install, let it support distributed transactions you need to do the following (in the help file) first COPY MSJDBC installation directory / SQLServer JTA / SQLJDBC.DLL to SQL Server installation directory / binn directory below, then open the query analyzer, load the MSJDBC installation directory / SQLSERVER JTA / InstjDBC.SQL and execute, (may need to restart) 2: Build 2 databases in SQL Server, establish 2 table. Then start the WebLogic console, establish 2 Connection Pool points to the two databases, respectively, here to note the Microsoft JDBC driver for Type 4xa, then build 2 Data Source points to the Connection Pool. 3: OK, now we can write the program, build a WAR type Lomoz project in Eclipse, and Server selects WebLogC. Establish a.jsp, here explain, use JTA, only need CText CTX = New InitialContext (HTX); useertransaction tx = (userTransaction) ctx.lookup ("javax.transaction.usertransaction); you can use TX, below A.jsp's example, but this example is not to insert operation to 2 databases, if you want to insert data into 2 databases into the data, turn TX.ROLLBACK () to tx.commit (). A.jsp code is as follows <% @ page language = "java" import = "java.sql. *, java.util. *, javax.naming. *, javax.transaction. *"%>