【发布时间】:2013-11-01 09:36:35
【问题描述】:
以下提到
Enterprise beans often provide the business logic of a web application. In these cases,
packaging the enterprise bean within the web application's WAR module simplifies
deployment and application organization. Enterprise beans may be packaged within a
WAR module as Java programming language class files or within a JAR file that is
bundled within the WAR module.
过了一会儿
JAR files that contain enterprise bean classes packaged within a WAR module are not
considered EJB JAR files, even if the bundled JAR file conforms to the format of an EJB
JAR file. The enterprise beans contained within the JAR file are semantically
equivalent to enterprise beans located in the WAR module's WEB-INF/classes directory,
and the environment namespace of all the enterprise beans are scoped to the WAR module.
我无法通过这部分来理解这个例子。
这怎么可能
企业 bean 可以打包在 WAR 模块中作为 Java 编程语言类文件或打包在 WAR 模块中的 JAR 文件中
还
包含打包在 WAR 模块中的企业 bean 类的 JAR 文件不被视为 EJB JAR 文件,即使捆绑的 JAR 文件符合 EJB JAR 文件的格式。
【问题讨论】:
标签: jakarta-ee jar ejb war packaging