Application Server 9.1 包含以下增强功能:
Java EE 5 平台支持-Sun Java System Application Server 实现了 Java EE 5 规范,可以为下一代企业应用程序和 Web 服务提供最佳的应用程序运行时。Application Server 实现了以下 Java EE 标准:
Enterprise Java Beans 3.0
JAXB 2.0
Java Persistence
Java Server Faces 1.2
Java Server Pages 2.1 (JSP 2.1)
Java Server Pages Standard Tag Library (JSTL) 1.2
Streaming API for XML (StAX)
Web Services Metadata
Java API for XML based Web Services 2.0 (JAX-WS 2.0)
Common Annotations for the Java Platform 1.0 (CAJ 1.0)
Java Servlet 2.5
本说明的后面部分提供了完整的 Java EE 5 平台技术列表。
Web 服务互操作性技术 (Web Services Interoperability Technologies, WSIT) 支持 – Sun 与 Microsoft 密切合作,以确保 Web 服务企业技术(例如消息优化、可靠的消息传送和安全性)的互操作性。WSIT 的初始发行版便是这一通力合作的产品。WSIT 是多个开放式 Web 服务规范的实现,用以支持企业功能。除了消息优化、可靠的消息传送和安全性之外,WSIT 还包括引导和配置技术。从当前 Java 平台上内置的核心 XML 支持开始,WSIT 使用或扩展了现有的功能,并添加了新的对可互操作 Web 服务的支持,其中包括:
引导和配置
消息优化技术
可靠的消息传送技术
安全性技术
有关 Application Server 中的 WSIT 集成的更多信息,请参见本章后面部分的有关 WSIT 集成的更多信息。
JBI 支持-JBI 使用业务集成服务提供者接口 (Service Provider Interface, SPI) 对 Java EE 进行了扩展。开发者可以使用这些 SPI 为 WSCI、BPEL4WS 和 W3C Choreography Working Group 等规范创建或实现 Java 业务集成环境。 JBI 实现由 Application Server 安装程序直接安装,通常安装在 as-install/jbi 目录中。此目录包含 JBI 的所有通用 JAR 文件和系统组件,其中包括在 Application Server JVM 中启动 JBI 框架的 lifecycle 模块。
内存复制支持-其他服务器上的内存复制提供了会话状态数据的轻量存储,而无需获得单独的数据库(例如 HADB)。此类型的复制使用其他服务器上的内存对 HTTP 会话和有状态会话 Bean 数据进行高可用性存储。群集服务器实例在环状拓扑中复制会话状态。每个备份实例都将复制的数据存储在内存中。通过在其他服务器上的内存中复制会话状态数据,可以对会话进行分配。使用内存复制需要启用组管理服务 (Group Management Service, GMS)(启用状态默认为 true)。
使用情况配置文件-每个管理域都与一个使用情况配置文件关联,此配置文件指定该域的功能。Application Server 提供以下配置文件:
开发者-如果正在开发环境中运行域,并且应用程序不需要群集功能(例如负载平衡、高可用性和会话复制),请使用此配置文件。请注意,此配置文件的实际名称为 "developer"(区分大小写)。
群集-如果要创建向已部署的 Java EE 应用程序分配可伸缩性和高可用性的应用服务器实例的群集,请使用此配置文件。应用程序的状态持久保存在内存中。请注意,此配置文件的实际名称为 "cluster"(区分大小写)。
企业-如果需要 HADB 和 NSS,请使用此配置文件。除非分别安装了 HADB 和 NSS,或者将 Application Server 作为 Java Enterprise System (Java ES) 的一部分安装,否则此配置文件不可用。
负载平衡增强功能-已向负载平衡插件中添加了数项增强功能。简而言之,这些增强功能包括:
加权循环 – 已向实例 Loadbalancer.xml 文件中添加了名为 weight 的可选属性。使用此选项,负载平衡器插件可以根据权重路由请求。例如,对于每 500 个请求,100 个将转至 instance1,400 个将转至 instance2。默认权重为 100。可从管理控制台或命令行为每个实例指定权重,服务器 domain.xml 针对每个实例都有一个表示权重的属性。
用户自定义的负载平衡器决策-可让用户定义用于负载平衡的自定义逻辑;例如,基于用户身份的重定向和基于 mime 的负载平衡。此功能通过由负载平衡器装入的用户自定义共享库实现。此自定义共享库可实现 loadbalancer.h(位于 as-install/lib/install/templates/ 中)中定义的接口。
管理增强功能-早期版本的 Application Server 需要将 loadbalancer.xml 文件手动复制到特定服务器的 config 目录。Application Server 9.1 Update 1 包括用于在 Web 服务器和 Application Server 之间执行此类复制的推送式自动操作。负载平衡器本身在服务器的 domain.xml 文件中进行配置。
开放源代码和 GlassFish 社区-Sun 在 2005 年 6 月启动了 GlassFish 社区,目的是开发可实现 Java EE 5 平台的最新功能和相关企业技术的免费开放源代码的商业级应用服务器。Application Server 就是基于由 Sun 的工程师和 GlassFish 社区开发的源代码。
更新中心支持-Application Server 更新中心提供了自动 Application Server 更新,并允许用户轻松访问其他组件。有关更多信息,请参见使用 Application Server 更新中心。