[jboss-svn-commits] JBL Code SVN: r23636 - labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/zh-CN.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Oct 31 00:35:51 EDT 2008


Author: xhuang at jboss.com
Date: 2008-10-31 00:35:50 -0400 (Fri, 31 Oct 2008)
New Revision: 23636

Modified:
   labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/zh-CN/Transactions.po
Log:
update

Modified: labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/zh-CN/Transactions.po
===================================================================
--- labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/zh-CN/Transactions.po	2008-10-30 17:35:57 UTC (rev 23635)
+++ labs/jbosstm/enterprise/tags/EAP_4_3_0/Transactions_JTA_Programmers_Guide/zh-CN/Transactions.po	2008-10-31 04:35:50 UTC (rev 23636)
@@ -8,8 +8,8 @@
 "Project-Id-Version: Transactions\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-09-23 06:25+0000\n"
-"PO-Revision-Date: 2008-10-30 11:39+1000\n"
-"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"PO-Revision-Date: 2008-10-31 14:35+1000\n"
+"Last-Translator: \n"
 "Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
@@ -59,7 +59,7 @@
 #: Transactions.xml:18
 #, no-c-format
 msgid "UserTransaction"
-msgstr ""
+msgstr "UserTransaction"
 
 #. Tag: para
 #: Transactions.xml:19
@@ -74,6 +74,8 @@
 "interfacename> automatically associates newly created transactions with the "
 "invoking thread."
 msgstr ""
+"<interfacename>UserTransaction</interfacename> 接口为应用程序提供控制事务边界的能力。它具有开始、提交和回滚顶层事务的方法:它不支持嵌套事务,如果调用线程已经和事务关联,begin 方法会抛出 <code>NotSupportedException</code>。<interfacename>UserTransaction</"
+"interfacename> 自动和调用线程最新创建的事务相关联。"
 
 #. Tag: para
 #: Transactions.xml:24
@@ -83,6 +85,8 @@
 "<methodname>com.arjuna.ats.jta.UserTransaction.userTransaction()</"
 "methodname> method."
 msgstr ""
+"在 JBossJTA 里,UserTransactions 可通过静态的 <methodname>com.arjuna.ats.jta.UserTransaction.userTransaction()</"
+"methodname> 方法获得。"
 
 #. Tag: para
 #: Transactions.xml:28
@@ -90,7 +94,7 @@
 msgid ""
 "In order to select the local JTA implementation it is necessary to perform "
 "the following steps:"
-msgstr ""
+msgstr "为了选择本地 JTA 实现,有必要执行下列步骤:"
 
 #. Tag: para
 #: Transactions.xml:33
@@ -100,6 +104,9 @@
 "property> is set to <property>com.arjuna.ats.internal.jta.transaction."
 "arjunacore.TransactionManagerImple</property>."
 msgstr ""
+"确保 <property>com.arjuna.ats.jta.jtaTMImplementation</"
+"property> 属性被设置为 <property>com.arjuna.ats.internal.jta.transaction."
+"arjunacore.TransactionManagerImple</property>。"
 
 #. Tag: para
 #: Transactions.xml:38
@@ -109,12 +116,15 @@
 "property> is set to <property>com.arjuna.ats.internal.jta.transaction."
 "arjunacore.UserTransactionImple</property>."
 msgstr ""
+"1. 确保把属性 <property>com.arjuna.ats.jta.jtaUTImplementation</"
+"property> 设置为 <property>com.arjuna.ats.internal.jta.transaction."
+"arjunacore.UserTransactionImple</property>。"
 
 #. Tag: title
 #: Transactions.xml:44
 #, no-c-format
 msgid "TransactionManager"
-msgstr ""
+msgstr "TransactionManager"
 
 #. Tag: para
 #: Transactions.xml:45
@@ -123,7 +133,7 @@
 "The <interfacename>TransactionManager</interfacename> interface allows the "
 "application server to control transaction boundaries on behalf of the "
 "application being managed."
-msgstr ""
+msgstr "<interfacename>TransactionManager</interfacename> 接口允许应用服务器代替被管理的应用程序来控制事务边界。"
 
 #. Tag: para
 #: Transactions.xml:50
@@ -133,6 +143,8 @@
 "static <methodname>com.arjuna.ats.jta.TransactionManager.transactionManager</"
 "methodname> method."
 msgstr ""
+"在 JBossJTA 里,事务管理者实现可以通过静态的 <methodname>com.arjuna.ats.jta.TransactionManager.transactionManager</"
+"methodname> 方法获得。"
 
 #. Tag: para
 #: Transactions.xml:54
@@ -143,7 +155,7 @@
 "context is either null or it refers to a specific global transaction. "
 "Multiple threads may be associated with the same global transaction. As "
 "noted above, nested transactions are not supported."
-msgstr ""
+msgstr "事务管理者把和线程关联的事务上下文作为内部的数据结构进行维护。线程的事务上下文为空或指向专门的全局事务。多个线程可以和相同的全局事务相关联。如前所述,它不支持嵌套的事务。"
 
 #. Tag: para
 #: Transactions.xml:57
@@ -152,7 +164,7 @@
 "Each transaction context is encapsulated by a Transaction object, which can "
 "be used to perform operations which are specific to the target transaction, "
 "regardless of the calling thread’s transaction context."
-msgstr ""
+msgstr "每个事务上下文都用一个 Transaction 对象进行封装,它可以用来执行目标事务专有的操作,而不用管调用线程的事务上下文是什么。"
 
 #. Tag: para
 #: Transactions.xml:60
@@ -163,7 +175,7 @@
 "transaction and associates the transaction context with the calling thread. "
 "If the calling thread is already associated with a transaction then it "
 "throws the <code>NotSupportedException</code>."
-msgstr ""
+msgstr "<interfacename>TransactionManager</interfacename> 的 <methodname>begin</methodname> 方法启动新的顶层事务并将事务上下文和调用线程关联。如果调用线程已经和事务关联,那么它将抛出 <code>NotSupportedException</code>。"
 
 #. Tag: para
 #: Transactions.xml:63
@@ -173,7 +185,7 @@
 "object that represents the transaction context currently associated with the "
 "calling thread. This object can be used to perform various operations on the "
 "target transaction, described later."
-msgstr ""
+msgstr "<methodname>getTransaction</methodname> 方法返回代表当前和调用线程相关联的事务上下文的 Transaction 对象。这个对象可用来执行目标事务上的不同操作,我们在后会进行讨论。"
 
 #. Tag: para
 #: Transactions.xml:66
@@ -187,7 +199,7 @@
 "originator only. If the calling thread is not allowed to commit the "
 "transaction, the TM throws an exception. JBossJTA does not currently impose "
 "any restriction on the ability of threads to terminate transactions."
-msgstr ""
+msgstr "commit 方法用于结束当前和调用线程相关联的事务。在它返回后,调用线程将不再和任何事务关联。如果当线程没有和任何线程关联时调用 commit,TM 将抛出异常。在某些实现里,commit 操作只限于事务发起者。如果调用线程不被允许提交事务,TM 将抛出异常。目前 JBossJTA 不强加任何限制在线程终止事务的能力上。"
 
 #. Tag: para
 #: Transactions.xml:69
@@ -197,7 +209,7 @@
 "transaction associated with the current thread. After the "
 "<methodname>rollback</methodname> method completes, the thread is associated "
 "with no transaction."
-msgstr ""
+msgstr "<methodname>rollback</methodname> 方法用于回滚和当前线程相关联的事务。在 <methodname>rollback</methodname> 方法调用结束后,线程不再和任何事务相关联。"
 
 #. Tag: para
 #: Transactions.xml:73
@@ -210,13 +222,13 @@
 "In this case, it is often important that this information is communicated to "
 "the creator. JBossTS does this during commit or rollback by throwing "
 "<code>IllegalStateException</code>."
-msgstr ""
+msgstr "在多线程环境里,多个线程有可能存在于相同的事务里。如果禁用了事务语义检查,或事务超时,那么事务就可能由不是创建它的线程终止。此时,将这个信息通知创建者通常是很重要的。JBossTS 在提交或回滚时通过抛出 <code>IllegalStateException</code> 来实现这一点。"
 
 #. Tag: title
 #: Transactions.xml:78
 #, no-c-format
 msgid "Suspending and resuming a transaction"
-msgstr ""
+msgstr "暂停和恢复事务"
 
 #. Tag: para
 #: Transactions.xml:79
@@ -231,7 +243,7 @@
 "<code>Transaction</code> object is returned. The <code>Transaction</code> "
 "object can later be passed to the resume method to reinstate the transaction "
 "context."
-msgstr ""
+msgstr "JTA 支持线程临时暂停和恢复事务来执行非事务性任务的概念。调用 suspend 方法来临时暂停和当前调用线程相关的当前事务,也就是说,该线程不再在这个作用域内操作。如果线程没有和任何事务关联,空对象引用将被返回;否则将返回有效的 <code>Transaction</code> 对象。之后 <code>Transaction</code> 对象可以传递给 resume 方法来恢复事务上下文。"
 
 #. Tag: para
 #: Transactions.xml:83
@@ -241,7 +253,7 @@
 "transaction context with the calling thread. If the transaction specified is "
 "a valid transaction, the transaction context is associated with the calling "
 "thread; otherwise, the thread is associated with no transaction."
-msgstr ""
+msgstr "<methodname>resume</methodname> 方法将指定的事务上下文和调用线程关联。如果指定的事务是一个有效事务,事务上下文将和调用线程进行关联;否则,调用线程将不和任何事务关联。"
 
 #. Tag: para
 #: Transactions.xml:87
@@ -250,7 +262,7 @@
 "If <methodname>resume</methodname> is invoked when the calling thread is "
 "already associated with another transaction, the Transaction Manager throws "
 "the <code>IllegalStateException</code> exception."
-msgstr ""
+msgstr "如果调用线程已经和其他事务关联时调用<methodname>resume</methodname>,事务管理者将抛出 <code>IllegalStateException</code> 异常。"
 
 #. Tag: screen
 #: Transactions.xml:91
@@ -260,6 +272,9 @@
 "        ..\n"
 "TransactionManager.resume(tobj);"
 msgstr ""
+"Transaction tobj = TransactionManager.suspend();\n"
+"        ..\n"
+"TransactionManager.resume(tobj);"
 
 #. Tag: para
 #: Transactions.xml:93
@@ -268,11 +283,12 @@
 "Some Transaction Manager implementations allow a suspended transaction to be "
 "resumed by a different thread. This feature is not required by JTA, but "
 "JBossJTA does support this."
-msgstr ""
+msgstr "有些事务管理者实现允许其他线程恢复暂停的事务。虽然 JTA 并不要求实现这个功能,但 JBossJTA 支持它。 "
 
 #. Tag: para
 #: Transactions.xml:97
 #, no-c-format
+#, fuzzy
 msgid ""
 "When a transaction is suspended the application server must ensure that the "
 "resources in use by the application are no longer registered with the "
@@ -284,7 +300,7 @@
 "Enlisting a resource as a result of resuming a transaction triggers the "
 "Transaction Manager to inform the resource manager to re-associate the "
 "resource object with the resumed transaction."
-msgstr ""
+msgstr "当事务被暂停时,一样服务器"
 
 #. Tag: title
 #: Transactions.xml:101




More information about the jboss-svn-commits mailing list