[jboss-cvs] JBossAS SVN: r72602 - projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Apr 23 00:47:50 EDT 2008


Author: xhuang at jboss.com
Date: 2008-04-23 00:47:50 -0400 (Wed, 23 Apr 2008)
New Revision: 72602

Modified:
   projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/The_CMP_Engine.po
Log:
update

Modified: projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/The_CMP_Engine.po
===================================================================
--- projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/The_CMP_Engine.po	2008-04-23 04:07:31 UTC (rev 72601)
+++ projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/The_CMP_Engine.po	2008-04-23 04:47:50 UTC (rev 72602)
@@ -1,24 +1,27 @@
+# translation of The_CMP_Engine.po to
 # Language /tmp/mike/JBEAP420/JBAS translations for JBEAP package.
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
+#
 # Automatically generated, 2007.
-#
+# Xi HUANG <xhuang at redhat.com>, 2008.
 msgid ""
 msgstr ""
-"Project-Id-Version: JBEAP 420\n"
+"Project-Id-Version: The_CMP_Engine\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2007-11-05 06:04+0000\n"
-"PO-Revision-Date: 2001-02-09 01:25+0100\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-04-23 14:47+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
 
 #. Tag: title
 #: The_CMP_Engine.xml:6
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "The CMP Engine"
-msgstr "Engine 元素"
+msgstr "CMP 引擎"
 
 #. Tag: para
 #: The_CMP_Engine.xml:7
@@ -31,12 +34,14 @@
 "coverage of basic CMP concepts, we recommend <emphasis>Enterprise Java "
 "Beans, Fourth Edition</emphasis> (O&#39;Reilly 2004)."
 msgstr ""
+"本章将探索 JBoss 里 Container Managed Persistence (CMP) 的使用。我们将假定你基本熟悉 EJB CMP 模型而把重点放在 JBoss CMP 引擎的操作上。特别是我们将讨论如何配置和优化 JBoss 里运行的 CMP 应用程序。对于 CMP 概念的介绍,我们推荐你首先阅读<emphasis>《Enterprise Java "
+"Beans, Fourth Edition》</emphasis> (O&#39;Reilly 2004)。"
 
 #. Tag: title
 #: The_CMP_Engine.xml:11
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "Example Code"
-msgstr "示例"
+msgstr "示例代码"
 
 #. Tag: para
 #: The_CMP_Engine.xml:12
@@ -47,12 +52,14 @@
 "The data model we will be working with is shown in <xref linkend="
 "\"Example_Code-The_crime_portal_example_classes\"/>."
 msgstr ""
+"本章内容将通过例程来推进。我们将研究存储虚构的犯罪组织信息的 crime portal 应用程序。<xref linkend="
+"\"Example_Code-The_crime_portal_example_classes\"/> 展示了我们使用的数据模型。"
 
 #. Tag: title
 #: The_CMP_Engine.xml:16
 #, no-c-format
 msgid "The crime portal example classes"
-msgstr ""
+msgstr "crime portal 例程里的类"
 
 #. Tag: para
 #: The_CMP_Engine.xml:23
@@ -64,12 +71,14 @@
 "application to the JBoss server. Be sure the JBoss server dist locations are "
 "correctly defined or overridden using a local ant.properties file."
 msgstr ""
+"你可以在 <literal>src/main/"
+"org/jboss/cmp2</literal> 目录里找到 crime portal 的源代码。要构建这个例子,你可以运行 Ant。下面的命令构建并把应用程序部署在 JBoss 服务器里。请确保正确定义或用本地的 ant.properties 文件覆盖 JBoss 服务器的位置。"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:26
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "[examples]$ ant -Dchap=cmp2 config"
-msgstr "[examples]$ ant -Dchap=naming config"
+msgstr "[examples]$ ant -Dchap=cmp2 config"
 
 #. Tag: para
 #: The_CMP_Engine.xml:27
@@ -77,7 +86,7 @@
 msgid ""
 "When you start your JBoss server, or if it is already running, you should "
 "see the following deployment messages:"
-msgstr ""
+msgstr "当你启动 JBoss 服务器时,或如果它已经运行,你应该看到下面的部署信息:"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:30
@@ -109,6 +118,31 @@
 "15:46:37,247 INFO  [JobBean$Proxy] Creating Job The Greate Train Robbery\n"
 "15:46:37,257 INFO  [JobBean$Proxy] Creating Job Cheap Liquor Snatch and Grab"
 msgstr ""
+"15:46:36,704 INFO  [OrganizationBean$Proxy] Creating organization Yakuza, "
+"Japanese Gangsters\n"
+"15:46:36,790 INFO  [OrganizationBean$Proxy] Creating organization Mafia, "
+"Italian Bad Guys\n"
+"15:46:36,797 INFO  [OrganizationBean$Proxy] Creating organization Triads, "
+"Kung Fu Movie Extras\n"
+"15:46:36,877 INFO  [GangsterBean$Proxy] Creating Gangster 0 &#39;"
+"Bodyguard&#39; Yojimbo\n"
+"15:46:37,003 INFO  [GangsterBean$Proxy] Creating Gangster 1 &#39;Master&#39; "
+"Takeshi\n"
+"15:46:37,021 INFO  [GangsterBean$Proxy] Creating Gangster 2 &#39;Four "
+"finger&#39; Yuriko\n"
+"15:46:37,040 INFO  [GangsterBean$Proxy] Creating Gangster 3 &#39;Killer&#39; "
+"Chow\n"
+"15:46:37,106 INFO  [GangsterBean$Proxy] Creating Gangster 4 &#39;"
+"Lightning&#39; Shogi\n"
+"15:46:37,118 INFO  [GangsterBean$Proxy] Creating Gangster 5 &#39;Pizza-"
+"Face&#39; Valentino\n"
+"15:46:37,133 INFO  [GangsterBean$Proxy] Creating Gangster 6 &#39;"
+"Toohless&#39; Toni\n"
+"15:46:37,208 INFO  [GangsterBean$Proxy] Creating Gangster 7 &#39;"
+"Godfather&#39; Corleone\n"
+"15:46:37,238 INFO  [JobBean$Proxy] Creating Job 10th Street Jeweler Heist\n"
+"15:46:37,247 INFO  [JobBean$Proxy] Creating Job The Greate Train Robbery\n"
+"15:46:37,257 INFO  [JobBean$Proxy] Creating Job Cheap Liquor Snatch and Grab"
 
 #. Tag: para
 #: The_CMP_Engine.xml:31
@@ -117,13 +151,13 @@
 "Since the beans in the examples are configured to have their tables removed "
 "on undeployment, anytime you restart the JBoss server you need to rerun the "
 "config target to reload the example data and re-deploy the application."
-msgstr ""
+msgstr "既然本例里的 bean 都配置成在卸载时删除数据库表,每当你启动 JBoss 服务器时,你都需要重新运行 config 目标来加载示例数据并重部署应用程序。"
 
 #. Tag: title
 #: The_CMP_Engine.xml:35
 #, no-c-format
 msgid "Enabling CMP Debug Logging"
-msgstr ""
+msgstr "启用 CMP Debug 日志"
 
 #. Tag: para
 #: The_CMP_Engine.xml:36
@@ -134,6 +168,8 @@
 "To enable debug logging add the following category to your <literal>log4j."
 "xml</literal> file:"
 msgstr ""
+"要从单元测试里得到有意义的反馈,在运行测试前你需要提高 CMP 子系统的日志级别。要启用 debug 日志,请在 <literal>log4j."
+"xml</literal> 文件里添加下列类别:"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:39
@@ -143,6 +179,9 @@
 "    &lt;priority value=\"DEBUG\"/&gt;\n"
 "&lt;/category&gt;"
 msgstr ""
+"&lt;category name=\"org.jboss.ejb.plugins.cmp\"&gt;\n"
+"    &lt;priority value=\"DEBUG\"/&gt;\n"
+"&lt;/category&gt;"
 
 #. Tag: para
 #: The_CMP_Engine.xml:40
@@ -152,7 +191,7 @@
 "<literal>CONSOLE</literal> appender to allow debug level messages to be "
 "logged to the console. The following changes also need to be applied to the "
 "<literal>log4j.xml</literal> file."
-msgstr ""
+msgstr "除此以外,有必要降低 <literal>CONSOLE</literal> appender 的限制来允许 debug 级别的信息输出到控制台上。<literal>log4j.xml</literal> 文件也需要进行下面的改动。"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:43
@@ -174,6 +213,21 @@
 "    &lt;/layout&gt;\n"
 "&lt;/appender&gt;"
 msgstr ""
+"&lt;appender name=\"CONSOLE\" class=\"org.apache.log4j.ConsoleAppender"
+"\"&gt;\n"
+"    &lt;errorHandler class=\"org.jboss.logging.util.OnlyOnceErrorHandler\"/"
+"&gt;\n"
+"    &lt;param name=\"Target\"    value=\"System.out\"/&gt;\n"
+"    &lt;param name=\"Threshold\" value=\"<emphasis role=\"bold\">DEBUG</"
+"emphasis>\" /&gt;\n"
+"\n"
+"    &lt;layout class=\"org.apache.log4j.PatternLayout\"&gt;\n"
+"        &lt;!-- The default pattern: Date Priority [Category] Message\\n --"
+"&gt;\n"
+"        &lt;param name=\"ConversionPattern\" value=\"%d{ABSOLUTE} %-5p [%c"
+"{1}] %m%n\"/&gt;\n"
+"    &lt;/layout&gt;\n"
+"&lt;/appender&gt;"
 
 #. Tag: para
 #: The_CMP_Engine.xml:44
@@ -183,6 +237,8 @@
 "custom <literal>TRACE</literal> level priority on the <literal>org.jboss.ejb."
 "plugins.cmp</literal> category as shown here:"
 msgstr ""
+"要看到 CMP 引擎的全部信息,如下所示,你需要启用 <literal>org.jboss.ejb."
+"plugins.cmp</literal> 类别上自定义的 <literal>TRACE</literal> 级别的优先级:"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:47
@@ -192,12 +248,15 @@
 "    &lt;priority value=\"TRACE\" class=\"org.jboss.logging.XLevel\"/&gt;\n"
 "&lt;/category&gt;"
 msgstr ""
+"&lt;category name=\"org.jboss.ejb.plugins.cmp\"&gt;\n"
+"    &lt;priority value=\"TRACE\" class=\"org.jboss.logging.XLevel\"/&gt;\n"
+"&lt;/category&gt;"
 
 #. Tag: title
 #: The_CMP_Engine.xml:51
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "Running the examples"
-msgstr "运行该工具"
+msgstr "运行示例程序"
 
 #. Tag: para
 #: The_CMP_Engine.xml:52
@@ -206,13 +265,13 @@
 "The first test target illustrates a number of the customization features "
 "that will be discussed throughout this chapter. To run these tests execute "
 "the following ant target:"
-msgstr ""
+msgstr "第一个 test 目标演示了本章将讨论的大量自定义特征。要运行这些测试,请执行下面的 Ant 目标:"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:55
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "[examples]$ ant -Dchap=cmp2 -Dex=test run-example"
-msgstr "[examples]$ ant -Dchap=chap2 -Dex=3 run-example"
+msgstr "[examples]$ ant -Dchap=cmp2 -Dex=test run-example"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:56
@@ -240,6 +299,27 @@
 "t0_GangsterEJB.id FRO\n"
 "M GANGSTER t0_GangsterEJB WHERE t0_GangsterEJB.id=?"
 msgstr ""
+"22:30:09,862 DEBUG [OrganizationEJB#findByPrimaryKey] Executing SQL: SELECT "
+"t0_OrganizationEJ\n"
+"B.name FROM ORGANIZATION t0_OrganizationEJB WHERE t0_OrganizationEJB.name=?\n"
+"22:30:09,927 DEBUG [OrganizationEJB] Executing SQL: SELECT desc, the_boss "
+"FROM ORGANIZATION W\n"
+"HERE (name=?)\n"
+"22:30:09,931 DEBUG [OrganizationEJB] load relation SQL: SELECT id FROM "
+"GANGSTER WHERE (organi\n"
+"zation=?)\n"
+"22:30:09,947 DEBUG [StatelessSessionContainer] Useless invocation of remove"
+"() for stateless s\n"
+"ession bean\n"
+"22:30:10,086 DEBUG [GangsterEJB#findBadDudes_ejbql] Executing SQL: SELECT "
+"t0_g.id FROM GANGST\n"
+"ER t0_g WHERE (t0_g.badness &gt; ?)\n"
+"22:30:10,097 DEBUG [GangsterEJB#findByPrimaryKey] Executing SQL: SELECT "
+"t0_GangsterEJB.id FRO\n"
+"M GANGSTER t0_GangsterEJB WHERE t0_GangsterEJB.id=?\n"
+"22:30:10,102 DEBUG [GangsterEJB#findByPrimaryKey] Executing SQL: SELECT "
+"t0_GangsterEJB.id FRO\n"
+"M GANGSTER t0_GangsterEJB WHERE t0_GangsterEJB.id=?"
 
 #. Tag: para
 #: The_CMP_Engine.xml:57
@@ -247,7 +327,7 @@
 msgid ""
 "These tests exercise various finders, selects and object to table mapping "
 "issues. We will refer to the tests throughout the chapter."
-msgstr ""
+msgstr "这些测试实践了不同的 finders、selects 以及对象和表的映射问题。在本章内容里我们将引用这些测试。"
 
 #. Tag: para
 #: The_CMP_Engine.xml:60
@@ -261,12 +341,15 @@
 "the changes to the log4j.xml file, but it may take a minute or so. The "
 "following shows the actual execution of the readahead client:"
 msgstr ""
+"main 目标运行一系列的测试来演示 <xref linkend=\"The_CMP_Engine-"
+"Optimized_Loading\"/> 里讲述的优化载入配置。既然设置了正确的日志级别,read-"
+"ahead 将显示一些有用的所执行的查询的信息。请注意,虽然你并不需要重启 JBoss 服务器来应用对 log4j.xml 文件的修改,但这也需要一分钟左右的时间。下面显示了 readahead 客户端的实际执行情况:"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:63
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "[examples]$ ant -Dchap=cmp2 -Dex=readahead run-example"
-msgstr "[examples]$ ant -Dchap=chap2 -Dex=3 run-example"
+msgstr "[examples]$ ant -Dchap=cmp2 -Dex=readahead run-example"
 
 #. Tag: para
 #: The_CMP_Engine.xml:64
@@ -1485,8 +1568,7 @@
 #. Tag: para
 #: The_CMP_Engine.xml:485
 #, no-c-format
-msgid ""
-"The declaration of audit information with given column names is shown below."
+msgid "The declaration of audit information with given column names is shown below."
 msgstr ""
 
 #. Tag: programlisting
@@ -1595,8 +1677,7 @@
 #. Tag: para
 #: The_CMP_Engine.xml:510
 #, fuzzy, no-c-format
-msgid ""
-"Here is an example of a simple <literal>ContactInfo</literal> DVC class."
+msgid "Here is an example of a simple <literal>ContactInfo</literal> DVC class."
 msgstr "自定义的 <literal>CacheProvider</literal> 的类名。"
 
 #. Tag: programlisting
@@ -4557,8 +4638,7 @@
 "Suppose that while executing <literal>findByPrimaryKey</literal> we also "
 "want to preload two collection-valued CMR fields <literal>bs</literal> and "
 "<literal>cs</literal>."
-msgstr ""
-"假设我们要实现一个简单的从 Parent 到 Child 的 &lt;one-to-many&gt; 关联。"
+msgstr "假设我们要实现一个简单的从 Parent 到 Child 的 &lt;one-to-many&gt; 关联。"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:1567
@@ -4881,8 +4961,7 @@
 #. Tag: para
 #: The_CMP_Engine.xml:1645
 #, no-c-format
-msgid ""
-"Note, if we remove <literal>left-join</literal> metadata we will have only"
+msgid "Note, if we remove <literal>left-join</literal> metadata we will have only"
 msgstr ""
 
 #. Tag: programlisting
@@ -4960,8 +5039,7 @@
 #. Tag: para
 #: The_CMP_Engine.xml:1662
 #, no-c-format
-msgid ""
-"With this strategy, the query for the finder method in remains unchanged."
+msgid "With this strategy, the query for the finder method in remains unchanged."
 msgstr ""
 
 #. Tag: programlisting
@@ -5290,8 +5368,7 @@
 #. Tag: para
 #: The_CMP_Engine.xml:1942 The_CMP_Engine.xml:1975
 #, no-c-format
-msgid ""
-"All data in the preload cache for this entity is loaded into the fields."
+msgid "All data in the preload cache for this entity is loaded into the fields."
 msgstr ""
 
 #. Tag: para
@@ -6965,8 +7042,7 @@
 msgid ""
 "<emphasis role=\"bold\">auto-increment-template</emphasis>: This declares "
 "the SQL template for specifying auto increment columns."
-msgstr ""
-"<emphasis role=\"bold\">parameter</emphasis>:这个元素描述了操作的签名。"
+msgstr "<emphasis role=\"bold\">parameter</emphasis>:这个元素描述了操作的签名。"
 
 #. Tag: para
 #: The_CMP_Engine.xml:2764
@@ -7339,3 +7415,4 @@
 "<emphasis role=\"bold\">className</emphasis>:这是 <literal>org.apache."
 "catalina.Host</literal> 接口实现的类的全名。它的缺省值是 <literal>org.apache."
 "catalina.core.StandardHost</literal>。"
+




More information about the jboss-cvs-commits mailing list