[jboss-cvs] JBossAS SVN: r69789 - projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Feb 11 23:22:47 EST 2008
Author: xhuang at jboss.com
Date: 2008-02-11 23:22:47 -0500 (Mon, 11 Feb 2008)
New Revision: 69789
Modified:
projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/J2EE_Additional_Services.po
projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/J2EE_Connectors_On_JBOSS.po
Log:
update
Modified: projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/J2EE_Additional_Services.po
===================================================================
--- projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/J2EE_Additional_Services.po 2008-02-11 23:37:21 UTC (rev 69788)
+++ projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/J2EE_Additional_Services.po 2008-02-12 04:22:47 UTC (rev 69789)
@@ -9,7 +9,7 @@
"Project-Id-Version: J2EE_Additional_Services\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2007-11-05 06:03+0000\n"
-"PO-Revision-Date: 2008-02-11 11:55+1000\n"
+"PO-Revision-Date: 2008-02-12 12:13+1000\n"
"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
"Language-Team: <zh at li.org>\n"
"MIME-Version: 1.0\n"
@@ -737,13 +737,12 @@
#. Tag: para
#: J2EE_Additional_Services.xml:257
#, no-c-format
-#, fuzzy
msgid ""
"The <literal>XSLTConfigDelegate</literal> is used to transform services "
"whose <literal>port/interface</literal> configuration is specified using a "
"nested XML fragment. The following example maps the port number on "
"hypersonic datasource:"
-msgstr "<literal>XSLTConfigDelegate</literal> "
+msgstr "<literal>XSLTConfigDelegate</literal> 用来转换 <literal>port/interface</literal> 配置用嵌套的 XML 片段指定的服务。下面的例子把端口号码映射到 Hypersonic 数据源上:"
#. Tag: programlisting
#: J2EE_Additional_Services.xml:260
@@ -844,7 +843,7 @@
"embedded XML fragment, the XSLT script transforms a file read in from the "
"file system. The <literal>delegate-config</literal> takes exactly the same "
"form:"
-msgstr ""
+msgstr "<literal>XSLTFileDelegate</literal> 类似于 <literal>XSLTConfigDelegate</literal>,但它不转换内嵌的 XML 片段,而用 XSLT 脚本转换从文件系统读取的文件。<literal>delegate-config</literal> 采取完全一样的形式:"
#. Tag: para
#: J2EE_Additional_Services.xml:269
@@ -859,7 +858,7 @@
"parameters defined by default called <literal>host</literal> and "
"<literal>port</literal>, and their values are set to the configuration "
"<literal>host</literal> and <literal>port</literal> bindings."
-msgstr ""
+msgstr "<literal>xslt-config</literal> 子元素的内容指定应用到 <literal>configName</literal> 属性所指定 MBean 服务上的任意 SXL 脚本片段。这个属性必须是对应将被转换的一个 XML 文件的字符串值。可选的 <literal>xslt-param</literal> 元素指定 XSL 脚本里使用的参数值。缺省将定义两个 XSL 参数:<literal>host</literal> 和 <literal>port</literal>,且它们的值被设置成 configuration <literal>host</literal> 和 <literal>port</literal> 组合。"
#. Tag: para
#: J2EE_Additional_Services.xml:272
@@ -1209,6 +1208,9 @@
"time with an optional repeat interval as the <literal>javax.management.timer."
"TimerMBean</literal> agent service."
msgstr ""
+"Java 在 <literal>java.util."
+"Timer</literal> 和 <literal>java.util.TimerTask</literal> 工具类里包括一个简单的定时器。JMX 也包括一个以特定时间间隔进行 JMX 通知调度的机制:<literal>javax.management.timer."
+"TimerMBean</literal> 代理服务。"
#. Tag: para
#: J2EE_Additional_Services.xml:347
@@ -1262,7 +1264,6 @@
#. Tag: para
#: J2EE_Additional_Services.xml:372
#, no-c-format
-#, fuzzy
msgid ""
"Date as String able to be parsed by <literal>SimpleDateFormat</literal> with "
"default format pattern \"<literal>M/d/yy h:mm a</literal>\". If the date is "
@@ -1271,9 +1272,7 @@
"This means that when you restart the MBean (restarting JBoss etc.) it will "
"start at the next scheduled time. When no start date is available in the "
"future the <literal>Scheduler</literal> will not start."
-msgstr ""
-"字符型的日期可以用 <literal>SimpleDateFormat</literal> 和缺省格式 \"<literal>M/d/yy h:mm a</literal>\" 进行解析。如果这个日期是过去的日期,<literal>Scheduler</literal> 将 "
-"这意味着当你重启 MBean(如重启 JBoss)时,它将在下一个预定的时间启动。当未来没有可用的启动日期时,<literal>Scheduler</literal> 将不会启动。"
+msgstr "字符型的日期可以用 <literal>SimpleDateFormat</literal> 和缺省格式 \"<literal>M/d/yy h:mm a</literal>\" 进行解析。如果这个日期是过去的日期,<literal>Scheduler</literal> 将搜索一个将来的起始日期且采用初始的重复周期。这意味着当你重启 MBean(如重启 JBoss)时,它将在下一个预定的时间启动。当未来没有可用的启动日期时,<literal>Scheduler</literal> 将不会启动。"
#. Tag: para
#: J2EE_Additional_Services.xml:377
@@ -1282,18 +1281,16 @@
"For example, if you start your <literal>Schedulable</literal> everyday at "
"Noon and you restart your JBoss server then it will start at the next Noon "
"(the same if started before Noon or the next day if start after Noon)."
-msgstr ""
+msgstr "例如,如果你在每天中午都启动 <literal>Schedulable</literal>,且你重启 JBoss 服务器,它就会在下一天的中午启动(在午前或下一天的午后启动都是一样的)。"
#. Tag: para
#: J2EE_Additional_Services.xml:382
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"bold\">InitialRepetitions</emphasis>: The number of times "
"the scheduler will invoke the target's callback. If -1 then the callback "
"will be repeated until the server is stopped."
-msgstr ""
-"<emphasis role=\"bold\">ServerBindPort</emphasis>:用于服务器套接字的端口。如"
-"果为 0 则表示使用匿名端口。"
+msgstr "<emphasis role=\"bold\">InitialRepetitions</emphasis>:调度程序将调用目标的回调方法的次数。如果为 -1,则表示在服务器停止前回调方法都将被重复调用。"
#. Tag: para
#: J2EE_Additional_Services.xml:387
@@ -1306,14 +1303,16 @@
"<literal>startSchedule</literal> operation must be invoked on the "
"<literal>Scheduler</literal> to begin."
msgstr ""
+"<emphasis role=\"bold\">StartAtStartup</emphasis>:决定当 <literal>Scheduler</literal> 接收到它的 startService 生命周期通知时是否将启动。如果为 true,<literal>Scheduler</"
+"literal> 将在服务启动时开始执行。如果为 false,必须显性地调用 <literal>Scheduler</literal> 的 <literal>startSchedule</literal> 时,它才会开始执行。"
#. Tag: para
#: J2EE_Additional_Services.xml:392
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"bold\">SchedulePeriod</emphasis>: The interval between "
"scheduled calls in milliseconds. This value must be bigger than 0."
-msgstr "<emphasis role=\"bold\">read-write</emphasis>:既可读又可写。这是缺省选项。"
+msgstr "<emphasis role=\"bold\">SchedulePeriod</emphasis>:预定的调用的时间间隔(毫秒)。它的值必须大于 0。"
#. Tag: para
#: J2EE_Additional_Services.xml:397
@@ -1326,6 +1325,9 @@
"<literal>SchedulableArgumentTypes</literal> must be populated to correspond "
"to the constructor of the <literal>Schedulable</literal> implementation."
msgstr ""
+"<emphasis role=\"bold\">SchedulableClass</emphasis>:<literal>Scheduler</"
+"literal> 使用的 <literal>org.jboss.varia.scheduler.Schedulable</literal> 接口实现的全限定类名。<literal>SchedulableArguments</literal> 和 "
+"<literal>SchedulableArgumentTypes</literal> 必须传递给 <literal>Schedulable</literal> 实现的构造函数。"
#. Tag: para
#: J2EE_Additional_Services.xml:402
@@ -1336,7 +1338,7 @@
"class constructor. Only primitive data types, <literal>String</literal> and "
"classes with a constructor that accepts a <literal>String</literal> as its "
"sole argument are supported."
-msgstr ""
+msgstr "<emphasis role=\"bold\">SchedulableArguments</emphasis>:<literal>Schedulable</literal> 实现的用逗号隔开的参数列表。它只允许基本数据类型,它也支持 <literal>String</literal> 和带有构造函数并 以 <literal>String</literal> 为唯一参数的类。"
#. Tag: para
#: J2EE_Additional_Services.xml:407
@@ -1348,7 +1350,7 @@
"constructor via reflection. Only primitive data types, <literal>String</"
"literal> and classes with a constructor that accepts a <literal>String</"
"literal> as its sole argument are supported."
-msgstr ""
+msgstr "<emphasis role=\"bold\">SchedulableArgumentTypes</emphasis>:<literal>Schedulable</literal> 实现类的构造函数的用逗号隔开的参数列表。它将通过发射(reflection)找到正确的构造函数。它只允许基本数据类型,它也支持 <literal>String</literal> 和带有构造函数并 以 <literal>String</literal> 为唯一参数的类。"
#. Tag: para
#: J2EE_Additional_Services.xml:412
@@ -1361,6 +1363,8 @@
"<literal>SchedulableMBean</literal> the <literal>SchedulableMBeanMethod</"
"literal> must also be specified."
msgstr ""
+"<emphasis role=\"bold\">SchedulableMBean</emphasis>:指定调用的可调度的 MBean 的全限定的 JMX <literal>ObjectName</literal>。如果这个 MBean 不可用,它将不会被调用。当使用 <literal>SchedulableMBean</literal> 时,你也必须指定 <literal>SchedulableMBeanMethod</"
+"literal>。"
#. Tag: para
#: J2EE_Additional_Services.xml:417
@@ -1370,7 +1374,7 @@
"operation name to be called on the schedulable MBean. It can optionally be "
"followed by an opening bracket, a comma separated list of parameter "
"keywords, and a closing bracket. The supported parameter keywords include:"
-msgstr ""
+msgstr "<emphasis role=\"bold\">SchedulableMBeanMethod</emphasis>:指定在可调度 MBean 上调用的操作的名称。它可以带一个开括号、一个逗号隔开的参数关键字的列表、和一个闭括号。它支持的参数关键字包括:"
#. Tag: para
#: J2EE_Additional_Services.xml:422
@@ -1378,7 +1382,7 @@
msgid ""
"<literal>NOTIFICATION</literal> which will be replaced by the timers "
"notification instance (javax.management.Notification)"
-msgstr ""
+msgstr "<literal>NOTIFICATION</literal> 将被定时器通知实例所替换(javax.management.Notification)"
#. Tag: para
#: J2EE_Additional_Services.xml:427
@@ -1386,7 +1390,7 @@
msgid ""
"<literal>DATE</literal> which will be replaced by the date of the "
"notification call (java.util.Date)"
-msgstr ""
+msgstr "<literal>DATE</literal> 将被通知调用的日期(java.util.Date)所替换 "
#. Tag: para
#: J2EE_Additional_Services.xml:432
@@ -1394,17 +1398,15 @@
msgid ""
"<literal>REPETITIONS</literal> which will be replaced by the number of "
"remaining repetitions (long)"
-msgstr ""
+msgstr "<literal>REPETITIONS</literal> 将被剩余的重复次数(long)替换"
#. Tag: para
#: J2EE_Additional_Services.xml:437
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<literal>SCHEDULER_NAME</literal> which will be replaced by the "
"<literal>ObjectName</literal> of the <literal>Scheduler</literal>"
-msgstr ""
-"一条 <literal>UPDATE</literal> 语句,创建从 <literal>p</literal> 到 "
-"<literal>c</literal> 的连接"
+msgstr "<literal>SCHEDULER_NAME</literal> 将被 <literal>Scheduler</literal> 的<literal>ObjectName</literal> 替换"
#. Tag: para
#: J2EE_Additional_Services.xml:442
@@ -1412,7 +1414,7 @@
msgid ""
"Any fully qualified class name which the <literal>Scheduler</literal> will "
"set to null."
-msgstr ""
+msgstr "将被 <literal>Scheduler</literal> 设置为 null 的任何全限定类名。"
#. Tag: para
#: J2EE_Additional_Services.xml:449
@@ -1424,7 +1426,7 @@
"<literal>ObjectName</literal>. The following is an example of configuring a "
"<literal>Scheduler</literal> to call a <literal>Schedulable</literal> "
"implementation as well as a configuration for calling a MBean."
-msgstr ""
+msgstr "给定的 Scheduler 实例只支持单一的可调度实例。如果你需要配置多个调度事件,你可以使用多个带有唯一 <literal>ObjectName</literal> 的 <literal>Scheduler</literal> 实例。下面是一个配置<literal>Scheduler</literal> 来调用 <literal>Schedulable</literal> 实现以及 MBean 的例子。"
#. Tag: programlisting
#: J2EE_Additional_Services.xml:452
@@ -1449,6 +1451,24 @@
" \n"
"</server>"
msgstr ""
+"<server>\n"
+" \n"
+" <mbean code=\"org.jboss.varia.scheduler.Scheduler\"\n"
+" name=\"jboss.docs:service=Scheduler\">\n"
+" <attribute name=\"StartAtStartup\">true</attribute>\n"
+" <attribute name=\"SchedulableClass\">org.jboss.book.misc.ex2."
+"ExSchedulable</attribute>\n"
+" <attribute name=\"SchedulableArguments\">TheName,123456789</"
+"attribute>\n"
+" <attribute name=\"SchedulableArgumentTypes\">java.lang.String,"
+"long</attribute>\n"
+" \n"
+" <attribute name=\"InitialStartDate\">NOW</attribute>\n"
+" <attribute name=\"SchedulePeriod\">60000</attribute>\n"
+" <attribute name=\"InitialRepetitions\">-1</attribute>\n"
+" </mbean>\n"
+" \n"
+"</server>"
#. Tag: para
#: J2EE_Additional_Services.xml:453
@@ -1457,6 +1477,8 @@
"The <literal>SchedulableClass</literal><literal>org.jboss.book.misc.ex2."
"ExSchedulable</literal> example class is given below."
msgstr ""
+"下面给出了 <literal>SchedulableClass</literal><literal>org.jboss.book.misc.ex2."
+"ExSchedulable</literal> 示例类。"
#. Tag: programlisting
#: J2EE_Additional_Services.xml:456
@@ -1497,18 +1519,52 @@
" }\n"
"}"
msgstr ""
+"package org.jboss.book.misc.ex2;\n"
+"\n"
+"import java.util.Date;\n"
+"import org.jboss.varia.scheduler.Schedulable;\n"
+"\n"
+"import org.apache.log4j.Logger;\n"
+"\n"
+"/**\n"
+" * A simple Schedulable example.\n"
+" * @author Scott.Stark at jboss.org\n"
+" * @version $Revision: 1.4 $\n"
+" */\n"
+"public class ExSchedulable implements Schedulable\n"
+"{\n"
+" private static final Logger log = Logger.getLogger(ExSchedulable."
+"class);\n"
+"\n"
+" private String name;\n"
+" private long value;\n"
+"\n"
+" public ExSchedulable(String name, long value)\n"
+" {\n"
+" this.name = name;\n"
+" this.value = value;\n"
+" log.info(\"ctor, name: \" + name + \", value: \" + value);\n"
+" }\n"
+"\n"
+" public void perform(Date now, long remainingRepetitions)\n"
+" {\n"
+" log.info(\"perform, now: \" + now +\n"
+" \", remainingRepetitions: \" + remainingRepetitions +\n"
+" \", name: \" + name + \", value: \" + value);\n"
+" }\n"
+"}"
#. Tag: para
#: J2EE_Additional_Services.xml:457
-#, fuzzy, no-c-format
+#, no-c-format
msgid "Deploy the timer SAR by running:"
-msgstr "用下面的命令部署示例 ear:"
+msgstr "用下面的命令部署 timer SAR:"
#. Tag: programlisting
#: J2EE_Additional_Services.xml:460
-#, fuzzy, no-c-format
+#, no-c-format
msgid "[examples]$ ant -Dchap=misc -Dex=2 run-example"
-msgstr "[examples]$ ant -Dchap=chap2 -Dex=3 run-example"
+msgstr "[examples]$ ant -Dchap=misc -Dex=2 run-example"
#. Tag: para
#: J2EE_Additional_Services.xml:461
@@ -1516,7 +1572,7 @@
msgid ""
"The server console shows the following which includes the first two timer "
"invocations, separated by 60 seconds:"
-msgstr ""
+msgstr "服务器控制台显示的信息包括开头两个定时器调用,间隔为 60 秒:"
#. Tag: programlisting
#: J2EE_Additional_Services.xml:464
@@ -1533,12 +1589,22 @@
"2004, \n"
" remainingRepetitions: -1, name: TheName, value: 123456789"
msgstr ""
+"21:09:27,716 INFO [ExSchedulable] ctor, name: TheName, value: 123456789\n"
+"21:09:28,925 INFO [ExSchedulable] perform, now: Mon Dec 20 21:09:28 CST "
+"2004, \n"
+" remainingRepetitions: -1, name: TheName, value: 123456789\n"
+"21:10:28,899 INFO [ExSchedulable] perform, now: Mon Dec 20 21:10:28 CST "
+"2004, \n"
+" remainingRepetitions: -1, name: TheName, value: 123456789\n"
+"21:11:28,897 INFO [ExSchedulable] perform, now: Mon Dec 20 21:11:28 CST "
+"2004, \n"
+" remainingRepetitions: -1, name: TheName, value: 123456789"
#. Tag: title
#: J2EE_Additional_Services.xml:470
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The Timer Service"
-msgstr "Tomcat 服务"
+msgstr "定时器(Timer)服务"
#. Tag: para
#: J2EE_Additional_Services.xml:471
@@ -1548,6 +1614,8 @@
"Timer</literal>) which can send notifications at predetermined times. The a "
"timer MBean can be instantiated within JBoss as any other MBean."
msgstr ""
+"JMX 标准定义了个定时器 MBean(<literal>javax.management.timer."
+"Timer</literal>),它可以根据预定的时间发送通知。如同其他任何 MBean 一样,定时器 MBean 也可以在 JBoss 里实例化。"
#. Tag: programlisting
#: J2EE_Additional_Services.xml:474
@@ -1556,6 +1624,8 @@
"<mbean code=\"javax.management.timer.Timer\" name=\"jboss.monitor:"
"name=Heartbeat,type=Timer\"/>"
msgstr ""
+"<mbean code=\"javax.management.timer.Timer\" name=\"jboss.monitor:"
+"name=Heartbeat,type=Timer\"/>"
#. Tag: para
#: J2EE_Additional_Services.xml:475
Modified: projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/J2EE_Connectors_On_JBOSS.po
===================================================================
--- projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/J2EE_Connectors_On_JBOSS.po 2008-02-11 23:37:21 UTC (rev 69788)
+++ projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/J2EE_Connectors_On_JBOSS.po 2008-02-12 04:22:47 UTC (rev 69789)
@@ -9,7 +9,7 @@
"Project-Id-Version: J2EE_Connectors_On_JBOSS\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2007-12-09 23:23+0000\n"
-"PO-Revision-Date: 2008-02-11 14:37+1000\n"
+"PO-Revision-Date: 2008-02-12 11:35+1000\n"
"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
"Language-Team: <zh at li.org>\n"
"MIME-Version: 1.0\n"
@@ -1562,6 +1562,10 @@
"element schema is given in <xref linkend=\"Configuring_JDBC_DataSources-"
"The_XA_DataSource_configuration_schema\"/>."
msgstr ""
+"<emphasis role=\"bold\">xa-datasource</emphasis>:这个元素用来指定 (<literal>org.jboss.resource.connectionmanager</literal>) "
+"<literal>XATxConnectionManager</literal> 服务配置。<literal>XATxConnectionManager</literal> 实现了 <literal>ConnectionEventListener</literal>,它获取 <literal>XAResource</literal> 并通过适配器 <literal>ManagedConnection</literal> 的事务管理者来管理事务。为了确保本地事务的所有事情全部发生在同一个 <literal>ManagedConnection</literal> 里,它包括了 <literal>ManagedConnection</literal> 映射的一个 XID。当请求一个 <literal>Connection</"
+"literal> 或带有连接的事务被启动时,它会检查 <literal>ManagedConnection</literal> 是否已经存在于全局事务里,如果有就使用它。否则,带有 <literal>LocalTransaction</literal> 的空闲 <literal>ManagedConnection</literal> 将被使用。<xref linkend=\"Configuring_JDBC_DataSources-"
+"The_XA_DataSource_configuration_schema\"/> 给出了 <literal>xa-datasource</literal> 子元素模式。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:476
@@ -1571,7 +1575,7 @@
"identical to <literal>local-tx-datasource</literal>, with the addition of "
"the experimental datasource failover capability allowing JBoss to failover "
"to an alternate database in the event of a database failure."
-msgstr ""
+msgstr "<emphasis role=\"bold\">ha-local-tx-datasource</emphasis>:这个元素等同于 <literal>local-tx-datasource</literal>,但具有实验性的数据源失效切换的能力,在数据发生故障时允许 JBoss 切换到另外的数据库。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:481
@@ -1581,7 +1585,7 @@
"identical to <literal>xa-datasource</literal>, with the addition of the "
"experimental datasource failover capability allowing JBoss to failover to an "
"alternate database in the event of a database failure."
-msgstr ""
+msgstr "<emphasis role=\"bold\">ha-xa-datasource</emphasis>:这个元素等同于 <literal>xa-datasource</literal>,但具有实验性的数据源失效切换的能力,在数据发生故障时允许 JBoss 切换到另外的数据库。"
#. Tag: title
#: J2EE_Connectors_On_JBOSS.xml:487
@@ -1605,13 +1609,13 @@
#: J2EE_Connectors_On_JBOSS.xml:511
#, no-c-format
msgid "The schema for the experimental non-XA DataSource with failover"
-msgstr ""
+msgstr "实验性的带有失效切换能力的非 XA 数据源模式"
#. Tag: title
#: J2EE_Connectors_On_JBOSS.xml:519
#, no-c-format
msgid "The schema for the experimental XA Datasource with failover"
-msgstr ""
+msgstr "实验性的带有失效切换能力的 XA 数据源模式"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:526
@@ -1630,6 +1634,8 @@
"are not usable outside of the server VM, so they are normally bound under "
"the <literal>java:/</literal>, which isn't shared outside the local VM."
msgstr ""
+"<emphasis role=\"bold\">jndi-name</emphasis>:<literal>DataSource</literal> wrapper 将被绑定的 JNDI 名称。请注意,除非把 <literal>use-java-"
+"context</literal> 设置为 false,这个名称是相对于 <literal>java:/</literal> 上下文的。<literal>DataSource</literal> wrapper 在服务器 VM 外是不可用的,所以它们通常绑定到只在本地共享的 <literal>java:/</literal> 上。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:536
@@ -1695,7 +1701,7 @@
"the name of the JAAS security manager that will handle authentication. This "
"name correlates to the JAAS <literal>login-config.xml</literal> descriptor "
"<literal>application-policy/name</literal> attribute."
-msgstr ""
+msgstr "<emphasis role=\"bold\">security-domain-and-application</emphasis>:指定这个元素表示连接池里的连接应该根据应用程序代码提供的参数和基于 JASS 主题的信息进行区分。<literal>security-domain</literal> 的内容是处理验证的 JAAS 安全管理者的名称。这个名字和 JAAS <literal>login-config.xml</literal> 描述符里的 <literal>application-policy/name</literal> 属性相关。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:566
@@ -1727,7 +1733,7 @@
"waiting for a permit for a connection, and will never throw an exception if "
"creating a new connection takes an inordinately long time. The default is "
"5000."
-msgstr ""
+msgstr "<emphasis role=\"bold\">blocking-timeout-millis</emphasis>:这个元素指定在等待连接时,抛出异常前阻塞的最长时间。请注意,这只在等待连接许可时才阻塞,而就算在创建连接时花费很长时间也不会抛出异常。它的缺省值是 5000。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:581
@@ -1739,6 +1745,8 @@
"literal> scan time, which is 1/2 the smallest idle-timeout-minutes of any "
"pool."
msgstr ""
+"<emphasis role=\"bold\">idle-timeout-minutes</emphasis>:这个元素指定一个连接在关闭前处于空闲状态的最长时间(分钟)。实际的最长时间也取决于 <literal>IdleRemover</"
+"literal> 扫描时间(它是任何连接池的最小 idle-timeout-minutes 的 1/2)。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:586
@@ -1748,7 +1756,7 @@
"statement that should be executed when a new connection is created. This can "
"be used to configure a connection with database specific settings not "
"configurable via connection properties."
-msgstr ""
+msgstr "<emphasis role=\"bold\">new-connection-sql</emphasis>:这是一个 SQL 语句,当创建新连接时它应该被执行。它被用来配置带有不能通过连接属性配置的和数据库相关的设置的连接。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:591
@@ -1758,7 +1766,7 @@
"statement that should be run on a connection before it is returned from the "
"pool to test its validity to test for stale pool connections. An example "
"statement could be: <literal>select count(*) from x</literal>."
-msgstr ""
+msgstr "<emphasis role=\"bold\">check-valid-connection-sql</emphasis>:这是一个 SQL 语句,它应该在连接从连接池返回前被执行,以测试其有效性。例句可以是:<literal>select count(*) from x</literal>。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:596
@@ -1770,6 +1778,8 @@
"determine whether or not the exception indicates a connection error. Current "
"implementations include:"
msgstr ""
+"<emphasis role=\"bold\">exception-sorter-class-name</emphasis>:它指定实现 <literal>org.jboss.resource.adapter."
+"jdbc.ExceptionSorter</literal> 接口的类,这个类检查数据库异常并决定其是否表示连接错误。当前的实现包括:"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:601
@@ -1808,6 +1818,9 @@
"when present. The only provided implementation is <literal>org.jboss."
"resource.adapter.jdbc.vendor.OracleValidConnectionChecker</literal>."
msgstr ""
+"<emphasis role=\"bold\">valid-connection-checker-class-name</emphasis>:它指定实现 <literal>org.jboss.resource.adapter."
+"jdbc.ValidConnectionChecker</literal> 接口的类,这个类提供 <literal>SQLException isValidConnection(Connection e)</literal> 方法,用于从连接池返回连接时测试其有效性。这覆盖了目前的 <literal>check-valid-connection-sql</literal>。<literal>org.jboss."
+"resource.adapter.jdbc.vendor.OracleValidConnectionChecker</literal> 是唯一提供的第三方实现。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:628
@@ -1821,6 +1834,8 @@
"connection close call is logged as well. This is a debug feature that can be "
"turned off in production."
msgstr ""
+"<emphasis role=\"bold\">track-statements</emphasis>:这个布尔值元素指定在连接返回到连接池时是否检查未关闭的语句。如果为 true,对于每个未关闭的语句都会显示一个警告信息。如果 log4j 类别 <literal>org.jboss.resource.adapter.jdbc."
+"WrappedConnection</literal> 启用了 trace 级别,关闭连接的调用的跟踪栈信息也会被记录。这是一个调试功能,你在产品环境里可以关闭它。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:633
@@ -1830,7 +1845,7 @@
"element specifies the number of prepared statements per connection in an LRU "
"cache, which is keyed by the SQL query. Setting this to zero disables the "
"cache."
-msgstr ""
+msgstr "<emphasis role=\"bold\">prepared-statement-cache-size</emphasis>:这个元素指定 LRU 缓存里针对每个连接准备的语句数目,这个缓存以 SQL 查询为键值。其值为 0 则表示禁用这个缓存。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:638
@@ -1840,7 +1855,7 @@
"element specifies the JMX <literal>ObjectName</literal> string of a service "
"that the connection manager services depend on. The connection manager "
"service will not be started until the dependent services have been started."
-msgstr ""
+msgstr "<emphasis role=\"bold\">depends</emphasis>:<literal>depends</literal> 元素指定连接管理者服务依赖的服务的 JMX <literal>ObjectName</literal> 字符串。直到这个被依赖的服务启动后,连接管理者服务才会启动。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:643
@@ -1893,6 +1908,8 @@
"specifies a string name/value pair with the property name coming from the "
"name attribute and the value coming from the element content."
msgstr ""
+"<emphasis role=\"bold\">connection-property</emphasis>:<literal>connection-property</literal> 元素允许你把任意的连接属性传入 <literal>java.sql.Driver.connect(url, "
+"props)</literal> 方法。每个 <literal>connection-property</literal> 都指定一对字符串名/值,name 属性指定其名称,而元素内容则指定其取值。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:668
@@ -1910,7 +1927,7 @@
"specifies the <literal>java.sql.Connection</literal> transaction isolation "
"level to use. The constants defined in the Connection interface are the "
"possible element content values and include:"
-msgstr ""
+msgstr "<emphasis role=\"bold\">transaction-isolation</emphasis>:这个元素指定 <literal>java.sql.Connection</literal> 事务隔离级别。其内容可能的取值是 Connection 接口里定义的常量:"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:678
@@ -1952,7 +1969,7 @@
"transaction. The pools are lazily constructed on first use. Its use case is "
"for Oracle (and possibly other vendors) XA implementations that don't "
"like using an XA connection with and without a JTA transaction."
-msgstr ""
+msgstr "<emphasis role=\"bold\">no-tx-separate-pools</emphasis>:这个元素指出两个连接池必须隔离具有 JTA 事务和不具有 JTA 事务的连接。连接池在第一次使用时才被构建。其中一个例子是 Oracle(可能也有其他供应商)的 XA 实现,它不同时使用具有和不具有 JTA 事务的 XA 连接。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:710
@@ -1973,6 +1990,8 @@
"literal>. This is the same connection tracking behavior used for local "
"transactions."
msgstr ""
+"<emphasis role=\"bold\">track-connection-by-tx</emphasis>:如果值为 true,连接管理者将保持连接映射的 xid,而且,只在事务完成后且所有的连接句柄都已关闭或分离时才把连接返回到连接池里。其副作用是,我们从不挂起和恢复连接的 <literal>XAResource</"
+"literal> 的 xid。这和本地事务使用的连接跟踪行为是一样的。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:718
@@ -1989,6 +2008,8 @@
"literal> driver vendors do not support this, and require that all work done "
"under a particular xid go through the same connection."
msgstr ""
+"XA 规格暗示,在任何时候,任何连接都可以从任何线程使用任何事务的 xid 卷入该事务(如果需要就挂起其他事务)。原来的 JCA 实现假定了这一点,且只要控制权离开了 EJB 或连接句柄被关闭,它就分离这个连接并将其返回到连接池里。既然在原始事务完成后,一些其他事务也可以使用这个连接,那么取回原始的连接就是不可能的。这就使得大多数 <literal>XADataSource</"
+"literal> 驱动供应商都不支持这个功能,且要求以特定的 xid 在相同的连接里完成所有的工作。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:723
@@ -2014,6 +2035,8 @@
"JavaBeans setter with the element text translated to the true property type "
"using the <literal>java.beans.PropertyEditor</literal> for the type."
msgstr ""
+"<emphasis role=\"bold\">xa-datasource-property</emphasis>:<literal>xa-"
+"datasource-property</literal> 元素允许 <literal>XADataSource</literal> 实现类作为属性。每个属性通过 name 属性进行标识,其值由 <literal>xa-datasource-property</literal> 元素内容给出。这个属性通过 JavaBean 风格的 getter 方法查找属性名称映射到 <literal>XADataSource</literal> 实现里。如果找到了,属性值用 JavaBean 风格的 setter 进行设置,而元素内容用 <literal>java.beans.PropertyEditor</literal> 转换成实际的属性类型。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:733
@@ -2026,6 +2049,8 @@
"<literal>isSameRM(xaRes)</literal> return value regardless of the "
"<literal>xaRes</literal> parameter."
msgstr ""
+"<emphasis role=\"bold\">isSameRM-override-value</emphasis>:这个布尔型标记允许你覆盖 <literal>javax.transaction."
+"xa.XAResource.isSameRM(XAResource xaRes)</literal> 方法对 XA 托管连接的行为。如果被指定,它的值将无条件地作为 <literal>isSameRM(xaRes)</literal> 的返回值,而不管 <literal>xaRes</literal> 参数是什么。"
#. Tag: para
#: J2EE_Connectors_On_JBOSS.xml:738
More information about the jboss-cvs-commits
mailing list