[jboss-cvs] JBossAS SVN: r85663 - projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 10 02:26:48 EDT 2009


Author: xhuang at jboss.com
Date: 2009-03-10 02:26:47 -0400 (Tue, 10 Mar 2009)
New Revision: 85663

Modified:
   projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/J2EE_Connectors_On_JBOSS.po
   projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/Naming.po
Log:
UPDATE

Modified: projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/J2EE_Connectors_On_JBOSS.po
===================================================================
--- projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/J2EE_Connectors_On_JBOSS.po	2009-03-10 05:00:50 UTC (rev 85662)
+++ projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/J2EE_Connectors_On_JBOSS.po	2009-03-10 06:26:47 UTC (rev 85663)
@@ -1,30 +1,33 @@
+# translation of J2EE_Connectors_On_JBOSS.po to
 # Language /tmp/mike/JBEAP420/JBAS translations for JBEAP package.
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007, 2009 Free Software Foundation, Inc.
+#
 # Automatically generated, 2007.
-#
+# Xi HUANG <xhuang at redhat.com>, 2009.
 msgid ""
 msgstr ""
-"Project-Id-Version: JBEAP 420\n"
+"Project-Id-Version: J2EE_Connectors_On_JBOSS\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2009-01-20 02:37+0000\n"
-"PO-Revision-Date: 2001-02-09 01:25+0100\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2009-03-10 16:26+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
 #: J2EE_Connectors_On_JBOSS.xml:6
 #, no-c-format
 msgid "Connectors on JBoss"
-msgstr ""
+msgstr "JBoss 里的连接器"
 
 #. Tag: subtitle
 #: J2EE_Connectors_On_JBOSS.xml:7
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "The JCA Configuration and Architecture"
-msgstr "JBoss 类加载器架构"
+msgstr "JCA 配置和架构"
 
 #. Tag: para
 #: J2EE_Connectors_On_JBOSS.xml:8
@@ -36,13 +39,13 @@
 "API standardized access to relational data. The purpose of this chapter is "
 "to introduce the utility of the JCA APIs and then describe the architecture "
 "of JCA in JBoss"
-msgstr ""
+msgstr "本章讨论了 J2EE 连接者架构(J2EE Connector Architecture,JCA)的 JBoss 服务器实现。JCA 是一个资源管理者集成 API,它的目的是以和 JDBC API 对关系型数据库的访问形式标准化对非关系型资源的访问。本章的目的是介绍 JCA API 的功能并描述 JBoss 里 JCA 的架构。"
 
 #. Tag: title
 #: J2EE_Connectors_On_JBOSS.xml:12
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "JCA Overview"
-msgstr "JMX组件概述"
+msgstr "JCA 概述"
 
 #. Tag: para
 #: J2EE_Connectors_On_JBOSS.xml:13
@@ -54,11 +57,12 @@
 "of such resource managers as Enterprise Information Systems (EIS). Examples "
 "of EIS systems include enterprise resource planning packages, mainframe "
 "transaction processing, non-Java legacy applications, etc."
-msgstr ""
+msgstr "J2EE 1.4 包含了一个连接器构架(JCA)规格,它允许把事务性和安全性资源适配器集成到 J2EE 应用服务器环境里。JCA 规格描述了企业级信息系统(Enterprise Information Systems,EIS)等资源管理者的概念。EIS 系统的例子包括企业级资源规划包、大型机事务处理、非 Java 的传统应用程序等。"
 
 #. Tag: para
 #: J2EE_Connectors_On_JBOSS.xml:16
 #, no-c-format
+#, fuzzy
 msgid ""
 "The reason for focusing on EIS is primarily because the notions of "
 "transactions, security, and scalability are requirements in enterprise "
@@ -66,7 +70,7 @@
 "to integrate into JBoss in a secure, scalable and transacted manner. In this "
 "introduction we will focus on resource adapters as a generic notion rather "
 "than something specific to the EIS environment."
-msgstr ""
+msgstr "我们之所以专注于 EIS,是因为事务、安全性和可扩充性都是企业级软件系统的要求。然而,JCA "
 
 #. Tag: para
 #: J2EE_Connectors_On_JBOSS.xml:19
@@ -122,8 +126,7 @@
 #. Tag: title
 #: J2EE_Connectors_On_JBOSS.xml:32
 #, no-c-format
-msgid ""
-"The relationship between a J2EE application server and a JCA resource adaptor"
+msgid "The relationship between a J2EE application server and a JCA resource adaptor"
 msgstr ""
 
 #. Tag: para
@@ -149,22 +152,20 @@
 
 #. Tag: para
 #: J2EE_Connectors_On_JBOSS.xml:49
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<emphasis role=\"bold\">Transaction Management</emphasis>: a contract that "
 "allows the application server transaction manager to manage transactions "
 "that engage resource managers."
-msgstr ""
-"<emphasis role=\"bold\">TransactionManagerService</emphasis>:JTA 事务管理服"
-"务的 JMX ObjectName。"
+msgstr "<emphasis role=\"bold\">Transaction Management</emphasis>:允许应用服务器事务管理者管理涉及资源管理者的事务的服务。"
 
 #. Tag: para
 #: J2EE_Connectors_On_JBOSS.xml:54
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<emphasis role=\"bold\">Security Management</emphasis>: a contract that "
 "enables secured access to resource managers."
-msgstr "<emphasis role=\"bold\">Instrumentation</emphasis> 它是所管理的资源"
+msgstr "<emphasis role=\"bold\">Security Management</emphasis>:启用对资源管理者的安全访问的服务。"
 
 #. Tag: para
 #: J2EE_Connectors_On_JBOSS.xml:59
@@ -294,8 +295,7 @@
 #. Tag: para
 #: J2EE_Connectors_On_JBOSS.xml:97
 #, no-c-format
-msgid ""
-"The common attributes supported by the BaseConnectionManager2 MBean are:"
+msgid "The common attributes supported by the BaseConnectionManager2 MBean are:"
 msgstr ""
 
 #. Tag: para
@@ -717,8 +717,7 @@
 #. Tag: title
 #: J2EE_Connectors_On_JBOSS.xml:268
 #, no-c-format
-msgid ""
-"The nontransactional file system resource adaptor deployment descriptor."
+msgid "The nontransactional file system resource adaptor deployment descriptor."
 msgstr ""
 
 #. Tag: programlisting
@@ -2215,11 +2214,11 @@
 
 #. Tag: para
 #: J2EE_Connectors_On_JBOSS.xml:1004
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<emphasis role=\"bold\">type</emphasis>: The fully qualified type of the "
 "property"
-msgstr "<emphasis role=\"bold\">type</emphasis>:attribute类型的类全名。"
+msgstr "<emphasis role=\"bold\">type</emphasis>:这个属性的全限定名。"
 
 #. Tag: para
 #: J2EE_Connectors_On_JBOSS.xml:1009
@@ -2230,3 +2229,4 @@
 "true property type using the associated type <literal>PropertyEditor</"
 "literal>."
 msgstr ""
+

Modified: projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/Naming.po
===================================================================
--- projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/Naming.po	2009-03-10 05:00:50 UTC (rev 85662)
+++ projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/Naming.po	2009-03-10 06:26:47 UTC (rev 85663)
@@ -9,8 +9,8 @@
 "Project-Id-Version: Naming\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2009-01-20 02:37+0000\n"
-"PO-Revision-Date: 2009-03-09 10:32+1000\n"
-"Last-Translator: Xi HUANG\n"
+"PO-Revision-Date: 2009-03-10 10:41+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"
@@ -3371,7 +3371,6 @@
 #. Tag: para
 #: Naming.xml:798
 #, no-c-format
-#, fuzzy
 msgid ""
 "JNDI is a fundamental aspect of the J2EE specifications. One key usage is "
 "the isolation of J2EE component code from the environment in which the code "
@@ -3383,7 +3382,7 @@
 "available to the container components in the form of JNDI Context. The ENC "
 "is utilized by the participants involved in the life cycle of a J2EE "
 "component in the following ways."
-msgstr "JNDI 是 J2EE 规格的一个基础方面。其关键用法是把 J2EE 组件代码和它所部署的环境隔离。"
+msgstr "JNDI 是 J2EE 规格的一个基础方面。其关键用法是把 J2EE 组件代码和它所部署的环境隔离。应用程序组件环境的使用允许对应用程序组件进行定制而不需要访问或修改它的源码。应用程序组件环境被称为 ENC(enterprise naming context)。应用程序组件环境容器负责以 JNDI 上下文的形式为容器组件创建可用的 ENC。J2EE 组件生命周期里的参与者以下列形式使用 ENC。"
 
 #. Tag: para
 #: Naming.xml:803
@@ -3394,7 +3393,7 @@
 "for the component to specify the required ENC entries. The entries are "
 "declarations of the information and resources the component requires at "
 "runtime."
-msgstr ""
+msgstr "你应该编写应用程序组件商业逻辑来访问其 ENC 里的信息。组件提供者使用标准的部署描述符来指定所需的 ENC 实体。这些实体是组件在运行时所需的信息和资源的声明。"
 
 #. Tag: para
 #: Naming.xml:808
@@ -3403,7 +3402,7 @@
 "The container provides tools that allow a deployer of a component to map the "
 "ENC references made by the component developer to the deployment environment "
 "entity that satisfies the reference."
-msgstr ""
+msgstr "容器提供工具来使组件部署者把组件开发者创建的 ENC 引用映射到符合这个引用的部署环境实体。"
 
 #. Tag: para
 #: Naming.xml:813
@@ -3411,7 +3410,7 @@
 msgid ""
 "The component deployer utilizes the container tools to ready a component for "
 "final deployment."
-msgstr ""
+msgstr "组件部署者利用容器工具来使组件为最后的部署做好准备。"
 
 #. Tag: para
 #: Naming.xml:818
@@ -3419,7 +3418,7 @@
 msgid ""
 "The component container uses the deployment package information to build the "
 "complete component ENC at runtime"
-msgstr ""
+msgstr "组件容器使用部署包信息来在运行时构建完整的组件 ENC。"
 
 #. Tag: para
 #: Naming.xml:823
@@ -3430,6 +3429,8 @@
 "specification is available at <ulink url=\"http://java.sun.com/j2ee/download."
 "html\"></ulink>."
 msgstr ""
+"你可以在 J2EE 1.4 规格里找到关于在 J2EE 平台里使用 JNDI 的完整说明:<ulink url=\"http://java.sun.com/j2ee/download."
+"html\"></ulink>。"
 
 #. Tag: para
 #: Naming.xml:826
@@ -3445,23 +3446,29 @@
 "ENC_access_sample_code\"/> illustrates the prototypical lines of code a "
 "component uses to access its ENC."
 msgstr ""
+"应用程序组件实例使用 JNDI API 定位 ENC。应用程序组件实例创建通过使用无参构造函数来创建 <literal>javax.naming."
+"InitialContext</literal> 对象,然后它查找 <literal>java:comp/env</"
+"literal> 下的命名环境。应用组件的环境实体直接存储在 ENC 或其子上下文里。<xref linkend="
+"\"J2EE_and_JNDI___The_Application_Component_Environment-"
+"ENC_access_sample_code\"/> 解释了组件访问 ENC 的代码原型。"
 
 #. Tag: title
 #: Naming.xml:829
 #, no-c-format
 msgid "ENC access sample code"
-msgstr ""
+msgstr "访问 ENC 的示例代码"
 
 #. Tag: programlisting
 #: Naming.xml:830
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "// Obtain the application component&#39;s ENC\n"
 "Context iniCtx = new InitialContext();\n"
 "Context compEnv = (Context) iniCtx.lookup(\"java:comp/env\");"
 msgstr ""
-"InitialContext iniCtx = new InitialContext();\n"
-"LdapContext ldapCtx = iniCtx.lookup(\"external/ldap/jboss\");"
+"// Obtain the application component&#39;s ENC\n"
+"Context iniCtx = new InitialContext();\n"
+"Context compEnv = (Context) iniCtx.lookup(\"java:comp/env\");"
 
 #. Tag: para
 #: Naming.xml:831
@@ -3488,6 +3495,9 @@
 "<literal>Web1</literal> may bind the same name to the deployment environment "
 "language locale representation of red."
 msgstr ""
+"应用程序组件环境是一个本地环境,它只有当应用服务器容器的控制线程和应用组件交互时才被组件所访问。这意味着 EJB <literal>Bean1</literal> 不能访问 EJB <literal>Bean2</literal> 的 ENC 元素,反之亦然。类似地,Web 应用程序 <literal>Web1</literal> 不能访问 Web 应用程序 <literal>Web2</literal> 或 <literal>Bean1</literal> 和 <literal>Bean2</"
+"literal> 的 ENC 元素。而且,任意的客户端代码,不管是在应用服务器 VM 内部还是外部执行的,都不能访问组件的 <literal>java:comp</literal> JNDI 上下文。ENC 的目的是提供隔离的、只读的命名空间,应用组件可以依赖而不管组件所部署的环境的类型。ENC 必须和其他组件隔离,因为每个组件都定义了自己的 ENC 上下文。例如,组件 <literal>A</"
+"literal> 和 <literal>B</literal> 可以定义引用不同对象的相同名称。例如,EJB <literal>Bean1</literal> 可以定义环境条目 <literal>java:comp/env/red</literal> 来引用红色的十六进制 RGB 值,而 Web 应用程序 <literal>Web1</literal> 可以把相同名字绑定到部署环境里代表红色的本地语言代码上。"
 
 #. Tag: para
 #: Naming.xml:834
@@ -3503,7 +3513,7 @@
 "available to remote clients, provided the context or object supports "
 "serialization. You&#39;ll see how the isolation of these naming scopes is "
 "achieved in the <xref linkend=\"Naming_on_JBoss-The_JBossNS_Architecture\"/>."
-msgstr ""
+msgstr "JBoss 里有三个常用的命名空间级别:<literal>java:comp</literal>、<literal>java:</literal> 和其他。如前所述,<literal>java:comp</literal> 和其子上下文只对于和它相关联的应用程序组件可用。<literal>java:</literal> 下的子上下文和直接绑定的对象都只在 JBoss 服务器虚拟机内部而非远程客户端可见。对于远程客户端可用的任何其他上下文或对象绑定,都必须支持序列化。你可以在 <xref linkend=\"Naming_on_JBoss-The_JBossNS_Architecture\"/> 里看到这些命名作用域的隔离是怎样实现的。"
 
 #. Tag: para
 #: Naming.xml:837
@@ -3516,12 +3526,15 @@
 "interface would be bound to a globally visible name that should accessible "
 "by remote client."
 msgstr ""
+"限制对 <literal>java:</"
+"literal> 上下文的绑定是很有用的,一个例子便是只可以在相关联的数据库池驻留的 JBoss 服务器内部使用的 <literal>javax.sql.DataSource</"
+"literal> 连接工厂。从另一方面来说,EJB 的 home 接口将绑定到全局空间的名称,而远程客户应该可以访问这个名称。"
 
 #. Tag: title
 #: Naming.xml:841
 #, no-c-format
 msgid "ENC Usage Conventions"
-msgstr ""
+msgstr "ENC 用法规则"
 
 #. Tag: para
 #: Naming.xml:842
@@ -3538,9 +3551,9 @@
 
 #. Tag: para
 #: Naming.xml:847
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "Environment entries as declared by the <literal>env-entry</literal> elements"
-msgstr "下列是 <literal>TCP</literal> 元素里的可用属性。"
+msgstr "<literal>env-entry</literal> 元素声明的环境条目"
 
 #. Tag: para
 #: Naming.xml:852
@@ -3549,6 +3562,8 @@
 "EJB references as declared by <literal>ejb-ref</literal> and <literal>ejb-"
 "local-ref</literal> elements."
 msgstr ""
+"<literal>ejb-ref</literal> 和 <literal>ejb-"
+"local-ref</literal> 元素声明的 EJB 引用。"
 
 #. Tag: para
 #: Naming.xml:857
@@ -3556,7 +3571,7 @@
 msgid ""
 "Resource manager connection factory references as declared by the "
 "<literal>resource-ref</literal> elements"
-msgstr ""
+msgstr "<literal>resource-ref</literal> 元素声明的资源管理者工厂引用"
 
 #. Tag: para
 #: Naming.xml:862
@@ -3565,23 +3580,26 @@
 "Resource environment references as declared by the <literal>resource-env-"
 "ref</literal> elements"
 msgstr ""
+" <literal>resource-env-"
+"ref</literal> 元素声明的资源环境引用"
 
 #. Tag: para
 #: Naming.xml:867
 #, no-c-format
+#, fuzzy
 msgid ""
 "Each type of deployment descriptor element has a JNDI usage convention with "
 "regard to the name of the JNDI context under which the information is bound. "
 "Also, in addition to the standard deploymentdescriptor element, there is a "
 "JBoss server specific deployment descriptor element that maps the JNDI name "
 "as used by the application component to the deployment environment JNDI name."
-msgstr ""
+msgstr "每种类型的部署描述符元素都"
 
 #. Tag: title
 #: Naming.xml:871
 #, no-c-format
 msgid "Environment Entries"
-msgstr ""
+msgstr "环境条目"
 
 #. Tag: para
 #: Naming.xml:872
@@ -3880,7 +3898,7 @@
 #: Naming.xml:1002
 #, no-c-format
 msgid "An example ejb-jar.xml ejb-ref descriptor fragment"
-msgstr ""
+msgstr "ejb-jar.xml ejb-ref 描述符的示例片段"
 
 #. Tag: programlisting
 #: Naming.xml:1003
@@ -3926,6 +3944,45 @@
 "\n"
 "&lt;!--...--&gt;"
 msgstr ""
+"&lt;!-- ... --&gt;\n"
+"&lt;session&gt;\n"
+"    &lt;ejb-name&gt;ShoppingCartBean&lt;/ejb-name&gt;\n"
+"    &lt;!-- ...--&gt;\n"
+"&lt;/session&gt;\n"
+"\n"
+"&lt;session&gt;\n"
+"    &lt;ejb-name&gt;ProductBeanUser&lt;/ejb-name&gt;\n"
+"    &lt;!--...--&gt;\n"
+"    &lt;ejb-ref&gt;\n"
+"        &lt;description&gt;This is a reference to the store products entity "
+"&lt;/description&gt;\n"
+"        &lt;ejb-ref-name&gt;ejb/ProductHome&lt;/ejb-ref-name&gt;\n"
+"        &lt;ejb-ref-type&gt;Entity&lt;/ejb-ref-type&gt;\n"
+"        &lt;home&gt;org.jboss.store.ejb.ProductHome&lt;/home&gt;\n"
+"        &lt;remote&gt; org.jboss.store.ejb.Product&lt;/remote&gt;\n"
+"    &lt;/ejb-ref&gt;\n"
+"\n"
+"&lt;/session&gt;\n"
+"\n"
+"&lt;session&gt;\n"
+"    &lt;ejb-ref&gt;\n"
+"        &lt;ejb-name&gt;ShoppingCartUser&lt;/ejb-name&gt;\n"
+"        &lt;!--...--&gt;\n"
+"        &lt;ejb-ref-name&gt;ejb/ShoppingCartHome&lt;/ejb-ref-name&gt;\n"
+"        &lt;ejb-ref-type&gt;Session&lt;/ejb-ref-type&gt;\n"
+"        &lt;home&gt;org.jboss.store.ejb.ShoppingCartHome&lt;/home&gt;\n"
+"        &lt;remote&gt; org.jboss.store.ejb.ShoppingCart&lt;/remote&gt;\n"
+"        &lt;ejb-link&gt;ShoppingCartBean&lt;/ejb-link&gt;\n"
+"    &lt;/ejb-ref&gt;\n"
+"&lt;/session&gt;\n"
+"\n"
+"&lt;entity&gt;\n"
+"    &lt;description&gt;The Product entity bean &lt;/description&gt;\n"
+"    &lt;ejb-name&gt;ProductBean&lt;/ejb-name&gt;\n"
+"    &lt;!--...--&gt;\n"
+"&lt;/entity&gt;\n"
+"\n"
+"&lt;!--...--&gt;"
 
 #. Tag: title
 #: Naming.xml:1004
@@ -3942,6 +3999,10 @@
 "ShoppingCartHome home = (ShoppingCartHome) ejbCtx.lookup(\"ShoppingCartHome"
 "\");"
 msgstr ""
+"InitialContext iniCtx = new InitialContext();\n"
+"Context ejbCtx = (Context) iniCtx.lookup(\"java:comp/env/ejb\");\n"
+"ShoppingCartHome home = (ShoppingCartHome) ejbCtx.lookup(\"ShoppingCartHome"
+"\");"
 
 #. Tag: title
 #: Naming.xml:1010
@@ -4044,7 +4105,7 @@
 #: Naming.xml:1047
 #, no-c-format
 msgid "An example jboss.xml ejb-ref fragment"
-msgstr ""
+msgstr "jboss.xml ejb-ref 的示例片段"
 
 #. Tag: programlisting
 #: Naming.xml:1048
@@ -4068,6 +4129,23 @@
 "&lt;/entity&gt;\n"
 "&lt;!-- ... --&gt;"
 msgstr ""
+"&lt;!-- ... --&gt;\n"
+"&lt;session&gt;\n"
+"    &lt;ejb-name&gt;ProductBeanUser&lt;/ejb-name&gt;\n"
+"    &lt;ejb-ref&gt;\n"
+"        &lt;ejb-ref-name&gt;ejb/ProductHome&lt;/ejb-ref-name&gt;\n"
+"        &lt;jndi-name&gt;<emphasis role=\"bold\">jboss/store/ProductHome</"
+"emphasis>&lt;/jndi-name&gt;\n"
+"    &lt;/ejb-ref&gt;\n"
+"&lt;/session&gt;\n"
+"                        \n"
+"&lt;entity&gt;\n"
+"    &lt;ejb-name&gt;ProductBean&lt;/ejb-name&gt;\n"
+"    &lt;jndi-name&gt;<emphasis role=\"bold\">jboss/store/ProductHome</"
+"emphasis>&lt;/jndi-name&gt;\n"
+"     &lt;!-- ... --&gt;\n"
+"&lt;/entity&gt;\n"
+"&lt;!-- ... --&gt;"
 
 #. Tag: title
 #: Naming.xml:1053
@@ -4161,7 +4239,7 @@
 #: Naming.xml:1095
 #, no-c-format
 msgid "An example ejb-jar.xml ejb-local-ref descriptor fragment"
-msgstr ""
+msgstr "ejb-jar.xml ejb-local-ref 描述符的示例片段"
 
 #. Tag: programlisting
 #: Naming.xml:1096
@@ -4212,23 +4290,68 @@
 "    &lt;/session&gt;\n"
 "    &lt;!-- ... --&gt;"
 msgstr ""
+"&lt;!-- ... --&gt;\n"
+"    &lt;session&gt;\n"
+"        &lt;ejb-name&gt;Probe&lt;/ejb-name&gt;\n"
+"        &lt;home&gt;org.jboss.test.perf.interfaces.ProbeHome&lt;/home&gt;\n"
+"        &lt;remote&gt;org.jboss.test.perf.interfaces.Probe&lt;/remote&gt;\n"
+"        &lt;local-home&gt;org.jboss.test.perf.interfaces.ProbeLocalHome&lt;/"
+"local-home&gt;\n"
+"        &lt;local&gt;org.jboss.test.perf.interfaces.ProbeLocal&lt;/"
+"local&gt;\n"
+"        &lt;ejb-class&gt;org.jboss.test.perf.ejb.ProbeBean&lt;/ejb-"
+"class&gt;\n"
+"        &lt;session-type&gt;Stateless&lt;/session-type&gt;\n"
+"        &lt;transaction-type&gt;Bean&lt;/transaction-type&gt;\n"
+"    &lt;/session&gt;\n"
+"    &lt;session&gt;\n"
+"        &lt;ejb-name&gt;PerfTestSession&lt;/ejb-name&gt;\n"
+"        &lt;home&gt;org.jboss.test.perf.interfaces.PerfTestSessionHome&lt;/"
+"home&gt;\n"
+"        &lt;remote&gt;org.jboss.test.perf.interfaces.PerfTestSession&lt;/"
+"remote&gt;\n"
+"        &lt;ejb-class&gt;org.jboss.test.perf.ejb.PerfTestSessionBean&lt;/ejb-"
+"class&gt;\n"
+"        &lt;session-type&gt;Stateless&lt;/session-type&gt;\n"
+"        &lt;transaction-type&gt;Container&lt;/transaction-type&gt;\n"
+"        &lt;ejb-ref&gt;\n"
+"            &lt;ejb-ref-name&gt;ejb/ProbeHome&lt;/ejb-ref-name&gt;\n"
+"            &lt;ejb-ref-type&gt;Session&lt;/ejb-ref-type&gt;\n"
+"            &lt;home&gt;org.jboss.test.perf.interfaces.SessionHome&lt;/"
+"home&gt;\n"
+"            &lt;remote&gt;org.jboss.test.perf.interfaces.Session&lt;/"
+"remote&gt;\n"
+"            &lt;ejb-link&gt;Probe&lt;/ejb-link&gt;\n"
+"        &lt;/ejb-ref&gt;\n"
+"        &lt;ejb-local-ref&gt;\n"
+"            &lt;ejb-ref-name&gt;ejb/ProbeLocalHome&lt;/ejb-ref-name&gt;\n"
+"            &lt;ejb-ref-type&gt;Session&lt;/ejb-ref-type&gt;\n"
+"            &lt;local-home&gt;org.jboss.test.perf.interfaces."
+"ProbeLocalHome&lt;/local-home&gt;\n"
+"            &lt;local&gt;org.jboss.test.perf.interfaces.ProbeLocal&lt;/"
+"local&gt;\n"
+"            &lt;ejb-link&gt;Probe&lt;/ejb-link&gt;\n"
+"        &lt;/ejb-local-ref&gt;\n"
+"    &lt;/session&gt;\n"
+"    &lt;!-- ... --&gt;"
 
 #. Tag: title
 #: Naming.xml:1097
 #, no-c-format
 msgid "ENC ejb-local-ref access code fragment"
-msgstr ""
+msgstr "ENC ejb-local-ref 访问的代码片段"
 
 #. Tag: programlisting
 #: Naming.xml:1098
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "InitialContext iniCtx = new InitialContext();\n"
 "Context ejbCtx = (Context) iniCtx.lookup(\"java:comp/env/ejb\");\n"
 "ProbeLocalHome home = (ProbeLocalHome) ejbCtx.lookup(\"ProbeLocalHome\");"
 msgstr ""
 "InitialContext iniCtx = new InitialContext();\n"
-"LdapContext ldapCtx = iniCtx.lookup(\"external/ldap/jboss\");"
+"Context ejbCtx = (Context) iniCtx.lookup(\"java:comp/env/ejb\");\n"
+"ProbeLocalHome home = (ProbeLocalHome) ejbCtx.lookup(\"ProbeLocalHome\");"
 
 #. Tag: title
 #: Naming.xml:1103
@@ -4357,7 +4480,7 @@
 #: Naming.xml:1165
 #, no-c-format
 msgid "A web.xml resource-ref descriptor fragment"
-msgstr ""
+msgstr "web.xml resource-ref 描述符的示例片段"
 
 #. Tag: programlisting
 #: Naming.xml:1166
@@ -4393,6 +4516,35 @@
 "    &lt;/resource-ref&gt; \n"
 "&lt;web&gt;"
 msgstr ""
+"&lt;web&gt;\n"
+"    &lt;!-- ... --&gt;\n"
+"    &lt;servlet&gt;\n"
+"        &lt;servlet-name&gt;AServlet&lt;/servlet-name&gt;\n"
+"        &lt;!-- ... --&gt;\n"
+"    &lt;/servlet&gt;\n"
+"    &lt;!-- ... --&gt;\n"
+"    &lt;!-- JDBC DataSources (java:comp/env/jdbc) --&gt;\n"
+"    &lt;resource-ref&gt;\n"
+"        &lt;description&gt;The default DS&lt;/description&gt;\n"
+"        &lt;res-ref-name&gt;jdbc/DefaultDS&lt;/res-ref-name&gt;\n"
+"        &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;\n"
+"        &lt;res-auth&gt;Container&lt;/res-auth&gt;\n"
+"    &lt;/resource-ref&gt;\n"
+"    &lt;!-- JavaMail Connection Factories (java:comp/env/mail) --&gt;\n"
+"    &lt;resource-ref&gt;\n"
+"        &lt;description&gt;Default Mail&lt;/description&gt;\n"
+"        &lt;res-ref-name&gt;mail/DefaultMail&lt;/res-ref-name&gt;\n"
+"        &lt;res-type&gt;javax.mail.Session&lt;/res-type&gt;\n"
+"        &lt;res-auth&gt;Container&lt;/res-auth&gt;\n"
+"    &lt;/resource-ref&gt;\n"
+"    &lt;!-- JMS Connection Factories (java:comp/env/jms) --&gt;\n"
+"    &lt;resource-ref&gt;\n"
+"        &lt;description&gt;Default QueueFactory&lt;/description&gt;\n"
+"        &lt;res-ref-name&gt;jms/QueueFactory&lt;/res-ref-name&gt;\n"
+"        &lt;res-type&gt;javax.jms.QueueConnectionFactory&lt;/res-type&gt;\n"
+"        &lt;res-auth&gt;Container&lt;/res-auth&gt;\n"
+"    &lt;/resource-ref&gt; \n"
+"&lt;web&gt;"
 
 #. Tag: title
 #: Naming.xml:1167
@@ -4487,7 +4639,7 @@
 #: Naming.xml:1202
 #, no-c-format
 msgid "A sample jboss-web.xml resource-ref descriptor fragment"
-msgstr ""
+msgstr "jboss-web.xml 里 resource-ref 描述符的示例片段"
 
 #. Tag: programlisting
 #: Naming.xml:1203
@@ -4513,12 +4665,31 @@
 "    &lt;!-- ... --&gt;\n"
 "&lt;/jboss-web&gt;"
 msgstr ""
+"&lt;jboss-web&gt;\n"
+"    &lt;!-- ... --&gt;\n"
+"    &lt;resource-ref&gt;\n"
+"        &lt;res-ref-name&gt;jdbc/DefaultDS&lt;/res-ref-name&gt;\n"
+"        &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;\n"
+"        &lt;jndi-name&gt;java:/DefaultDS&lt;/jndi-name&gt;\n"
+"    &lt;/resource-ref&gt;\n"
+"    &lt;resource-ref&gt;\n"
+"        &lt;res-ref-name&gt;mail/DefaultMail&lt;/res-ref-name&gt;\n"
+"        &lt;res-type&gt;javax.mail.Session&lt;/res-type&gt;\n"
+"        &lt;jndi-name&gt;java:/Mail&lt;/jndi-name&gt;\n"
+"    &lt;/resource-ref&gt;\n"
+"    &lt;resource-ref&gt;\n"
+"        &lt;res-ref-name&gt;jms/QueueFactory&lt;/res-ref-name&gt;\n"
+"        &lt;res-type&gt;javax.jms.QueueConnectionFactory&lt;/res-type&gt;\n"
+"        &lt;jndi-name&gt;QueueConnectionFactory&lt;/jndi-name&gt;\n"
+"    &lt;/resource-ref&gt;\n"
+"    &lt;!-- ... --&gt;\n"
+"&lt;/jboss-web&gt;"
 
 #. Tag: title
 #: Naming.xml:1208
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "Resource Environment References"
-msgstr "脱管调用者引用"
+msgstr "资源环境引用"
 
 #. Tag: para
 #: Naming.xml:1209
@@ -4604,6 +4775,20 @@
 "    &lt;!-- ... --&gt;\n"
 "&lt;/session&gt;"
 msgstr ""
+"&lt;session&gt;\n"
+"    &lt;ejb-name&gt;MyBean&lt;/ejb-name&gt;\n"
+"    &lt;!-- ... --&gt;\n"
+"    &lt;resource-env-ref&gt;\n"
+"        &lt;description&gt;This is a reference to a JMS queue used in the\n"
+"            processing of Stock info\n"
+"        &lt;/description&gt;\n"
+"        &lt;resource-env-ref-name&gt;jms/StockInfo&lt;/resource-env-ref-"
+"name&gt;\n"
+"        &lt;resource-env-ref-type&gt;javax.jms.Queue&lt;/resource-env-ref-"
+"type&gt;\n"
+"    &lt;/resource-env-ref&gt;\n"
+"    &lt;!-- ... --&gt;\n"
+"&lt;/session&gt;"
 
 #. Tag: title
 #: Naming.xml:1237
@@ -4613,20 +4798,21 @@
 
 #. Tag: programlisting
 #: Naming.xml:1238
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "InitialContext iniCtx = new InitialContext();\n"
 "javax.jms.Queue q = (javax.jms.Queue)\n"
 "envCtx.lookup(\"java:comp/env/jms/StockInfo\");"
 msgstr ""
 "InitialContext iniCtx = new InitialContext();\n"
-"LdapContext ldapCtx = iniCtx.lookup(\"external/ldap/jboss\");"
+"javax.jms.Queue q = (javax.jms.Queue)\n"
+"envCtx.lookup(\"java:comp/env/jms/StockInfo\");"
 
 #. Tag: title
 #: Naming.xml:1243
 #, no-c-format
 msgid "Resource Environment References and jboss.xml, jboss-web.xml"
-msgstr ""
+msgstr "资源环境引用和 jboss.xml、jboss-web.xml"
 
 #. Tag: para
 #: Naming.xml:1244
@@ -4659,7 +4845,7 @@
 msgid ""
 "A <literal>jndi-name</literal> element that specifies the JNDI name of the "
 "resource as deployed in JBoss"
-msgstr ""
+msgstr "指定 JBoss 里部署的资源的 JNDI 名称的 <literal>jndi-name</literal> 元素"
 
 #. Tag: para
 #: Naming.xml:1259
@@ -4674,7 +4860,7 @@
 #: Naming.xml:1262
 #, no-c-format
 msgid "A sample jboss.xml resource-env-ref descriptor fragment"
-msgstr ""
+msgstr "jboss.xml resource-env-ref 描述符示例片段"
 
 #. Tag: programlisting
 #: Naming.xml:1263
@@ -4691,4 +4877,14 @@
 "    &lt;!-- ... --&gt;\n"
 "&lt;/session&gt;"
 msgstr ""
+"&lt;session&gt;\n"
+"    &lt;ejb-name&gt;MyBean&lt;/ejb-name&gt;\n"
+"    &lt;!-- ... --&gt;\n"
+"    &lt;resource-env-ref&gt;\n"
+"        &lt;resource-env-ref-name&gt;jms/StockInfo&lt;/resource-env-ref-"
+"name&gt;\n"
+"        &lt;jndi-name&gt;queue/StockInfoQueue&lt;/jndi-name&gt;\n"
+"    &lt;/resource-env-ref&gt;\n"
+"    &lt;!-- ... --&gt;\n"
+"&lt;/session&gt;"
 




More information about the jboss-cvs-commits mailing list