[jboss-cvs] JBossAS SVN: r84339 - 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 Feb 17 18:32:50 EST 2009


Author: xhuang at jboss.com
Date: 2009-02-17 18:32:50 -0500 (Tue, 17 Feb 2009)
New Revision: 84339

Modified:
   projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/EJB3.po
Log:
update

Modified: projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/EJB3.po
===================================================================
--- projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/EJB3.po	2009-02-17 23:29:20 UTC (rev 84338)
+++ projects/docs/enterprise/4.3.3/Server_Configuration_Guide/zh-CN/EJB3.po	2009-02-17 23:32:50 UTC (rev 84339)
@@ -9,8 +9,8 @@
 "Project-Id-Version: EJB3\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2009-01-20 02:37+0000\n"
-"PO-Revision-Date: 2009-02-17 16:07+1000\n"
-"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"PO-Revision-Date: 2009-02-18 09:32+1000\n"
+"Last-Translator: Xi HUANG\n"
 "Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
@@ -1027,7 +1027,7 @@
 "file, you can tell the EJB3 deployer to ignore JARs you know do not contain "
 "EJB3 beans. The non-EJB3 JAR files shipped with the JBoss AS are already "
 "listed in the jboss.ejb3:service=JarsIgnoredForScanning MBean service:"
-msgstr ""
+msgstr "EJB3 部署者自动扫描 classpath 上的 JAR 文件来寻找 EJB3 注解。当它找到带有 EJB3 注解的类时,它将其部署为 EJB3 服务。然而,如果应用程序部署了许多 JAR,扫描 classpath 上的 JAR 文件会非常耗时。在 jboss-as/server/production/ejb3.deployer/META-INF/jboss-service.xml 文件里,你可以告诉 EJB3 部署者忽略不包含 EJB3 bean 的 JAR 文件。JBoss AS 附带的非 EJB3 JAR 文件已经在 jboss.ejb3:service=JarsIgnoredForScanning MBean 服务里列出:"
 
 #. Tag: programlisting
 #: EJB3.xml:181
@@ -1080,7 +1080,7 @@
 "You can add any non-EJB3 JARs from your application to this list so that the "
 "server do not have to waste time scanning them. This could significantly "
 "improve the application startup time in some cases."
-msgstr ""
+msgstr "你可以把应用程序里的任何非 EJB3 JAR 添加到这个列表里,这样服务器就不需要浪费时间进行扫描了。在某些情况下,这可以显著地缩短应用程序的启动时间。"
 
 #. Tag: title
 #: EJB3.xml:188
@@ -1099,7 +1099,7 @@
 "other support library JARs required by the application. An EAR file also "
 "have deployment descriptors such as application.xml and jboss-app.xml. Below "
 "is the basic structure of a typical EAR application."
-msgstr ""
+msgstr "大多数 Java EE 应用程序都以 EAR 归档的方式部署。EAR 归档是一个 JAR 文件,它通常包括一个用于 web 页面、Servlets 以及其他和 web 相关的组件的 WAR 归档文件,一个或几个为 WAR 组件提供服务(如数据访问和事务)的 EJB3 JAR,以及应用程序所需的其他支持库 JAR。EAR 文件也具有部署描述符如 application.xml 和 jboss-app.xml。下面是一个典型的 EAR 应用程序的基本结构:"
 
 #. Tag: programlisting
 #: EJB3.xml:192
@@ -1153,7 +1153,7 @@
 "not need to declare EJB references in the web.xml file in order for the "
 "components in the WAR file to access EJB3 services. You can obtain the "
 "references directly via JNDI as we discussed earlier in the chapter."
-msgstr ""
+msgstr "请注意,在 JBoss AS 里,不象其他的应用服务器,你不需要为了让 WAR 里的组件可以访问 EJB3 服务而在 web.xml 文件里声明 EJB 引用。如我们在先前讨论的一样,你可以通过 JNDI 直接获取引用。"
 
 #. Tag: para
 #: EJB3.xml:196
@@ -1166,7 +1166,7 @@
 "classpath for JAR files used in this application. The JAR file location "
 "defaults to lib in JBoss AS -- but it might be different in other "
 "application servers."
-msgstr ""
+msgstr "下面是一个典型的 application.xml 文件。它声明了 EAR 里的 WAR 和 EJB3 JAR 归档文件,它也定义了应用程序的 web 内容根目录。当然,你可以在 EAR 应用程序里使用多个 EJB3 模块。application.xml 文件也可以为所使用的 JAR 定义一个共享的 classpath。JAR 文件的路径缺省为 JBoss AS 里的 lib - 但在不同的服务器里这有可能不同。"
 
 #. Tag: programlisting
 #: EJB3.xml:198
@@ -1224,6 +1224,8 @@
 "with this application, etc. You can learn more about the possible attributes "
 "in jboss-app.xml in its DTD: http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd."
 msgstr ""
+"jboss-app.xml 文件为 EAR 应用程序提供 JBoss 专有的部署配置。例如,它可以指定 EAR 里模块的部署顺序、部署 EAR 里 JBoss 专有的模块如 SAR(Service ARchive for MBeans)和 HAR(Hibernate ARchive for "
+"Hibernate objects)、提供安全域和应用程序里使用的 JMX MBean 等。你可以在 jboss-app.xml 的 DTD 里学到其可用的属性:http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd。"
 
 #. Tag: para
 #: EJB3.xml:202
@@ -1238,7 +1240,7 @@
 "persistence unit name to the @PersistenceContext annotation. The following "
 "jboss-app.xml specifies a scoped classloader myapp:archive=myapp.ear for the "
 "EAR application."
-msgstr ""
+msgstr "jboss-app.xml 的一个常见用法是配置 EAR 文件是否应该部署在自作用域的类加载器以避免和其他应用程序的命名冲突。如果你的 EAR 应用程序部署在自作用域的类加载器里且它在 EJB3 JAR 里只定义了一个 persistence-unit,你将可以使用 @PersistenceContext EntotyManager em 来把 EntityManager 注入到 session bean 里而不需要把 persistence unit 名称传递给 @PersistenceContext 注解。下面的 jboss-app.xml 为 EAR 应用程序指定了一个自作用域的类加载器 myapp:archive=myapp.ear。"
 
 #. Tag: programlisting
 #: EJB3.xml:204
@@ -1350,5 +1352,5 @@
 "JVM. The EnablelibDirectoryByDefault attribute specifies whether the lib "
 "directory in the EAR archive should be the default location for shared "
 "library JARs."
-msgstr ""
+msgstr "如果你把 Isolated 参数设置为 true,所有的 EAR 部署都将缺省具有自作用域的类加载器。这样就不需要在 jboss-app.xml 里定义类加载器。CallByValue 属性指定我们是否应该把所有 EJB 调用都当作远程调用。和本地的 call-by-reference 调用相比,远程调用要付出更大的性能代价,这是因为远程调用里涉及的对象都得序列化和解序列化。对于大多数应用程序来说,WAR 和 EJB3 JAR 都部署在相同的服务器上,因此这个值应该缺省为 false 且服务器使用本地的 call-by-reference 调用来调用相同 JVM 里的 EJB 方法。EnablelibDirectoryByDefault 属性指定 EAR 归档里的 lib 目录是否应该成为共享库 JAR 的缺省位置。"
 




More information about the jboss-cvs-commits mailing list