On February 21, 2006, Sun Microsystems released Sun Java System Application Server Platform Edition 9 Beta (hereinafter called Application Server PE 9 Beta), which implements the latest technologies of the Java Platform, Enterprise Edition 5 (Java EE 5) Specification, and offers many new features targeted at improving developer productivity. This free release is based on the source code developed by Sun engineers and the GlassFish community (an open-source community that is developing a Java EE 5 application server). Application Server PE 9 Beta is included as part of the Java EE 5 SDK--an all-in-one bundle with which developers can quickly learn, develop, and deploy new enterprise Java technologies. (More than 3.5 million developers have downloaded earlier versions of Java EE SDK.) This article discusses the key features of Java EE 5 SDK and Application Server PE 9 Beta. Contents
Java EE 5 Platform Support
With a primary focus on ease of development, the Java EE 5 platform offers developers ready access to a secure, portable, and scalable platform for their enterprise applications. Java EE 5 technology makes coding simpler and more straightforward. How? Through the use of Java annotations, programming based on POJO (Plain Old Java Object), and resource injection concepts. Key technologies in Java EE 5 include the following:
Application Server PE 9 Beta supports all the technologies required by the Java EE 5 specification, including the APIs listed above. New Persistence API
The Enterprise JavaBeans 3.0 specification defines the following APIs:
Java annotations can now be used to specify the mapping of Java business objects to a relational database. The persistence implementation in the application server supports both the generation of database schemas from Java objects and the mapping of existing database schemas to Java objects. In addition to using persistence inside the EJB container, you can use the Persistence API directly with Java SE. This allows maximum flexibility in your persistence needs, with a common solution for both client and server environments. JavaServer Faces 1.2 Technology
JavaServer Faces technology simplifies the building of user interfaces for web-based applications through its well-defined component, state, and event framework. JavaServer Faces technology works extremely well with Ajax technology, providing encapsulation to handle browser differences and to hide the complexities around JavaScript. The Java BluePrints Solutions Catalog for Java EE 5 covers key issues and solutions for common problems encountered during the design and building of an Ajax application on the Java EE platform. Several JavaServer Faces and Ajax components that work with Application Server PE 9 Beta are included as part of the catalog. Web Services and Service-Oriented Architecture (SOA)
Application Server PE 9 Beta is integrated with Java Web Services Developer Pack (Java WSDP) 2.0 to support the latest web services standards -- including Web Services Metadata 1.0 (specifies annotations for web services), JAX-WS 2.0 (specifies web services API for the Java platform), and JAXB 2.0 (specifies Java and XML binding). In addition, Application Server PE 9 Beta includes a Java EE Service Engine based on the Java Business Integration (JBI) standard. The Java EE Service Engine acts as a bridge between the application server and a JBI implementation. Web services defined in the application server are automatically exposed to the Enterprise Service Bus (ESB) in a JBI environment. Components in the application server can also invoke service providers that are made available through the ESB. Developer Productivity
The use of Java annotations and the simplification of EJB and web service APIs have contributed to reducing the amount of code a developer needs to write. It is now possible to write EJB and web service applications without defining any standard deployment descriptor files. In addition, many of the values in Sun-specific deployment descriptor ( Application Server PE 9 Beta is designed throughout with developer productivity in mind. The memory footprint of this Application Server is significantly reduced by the combination of the core Application Server and the message queue broker into a single process. This simplifies debugging because all executing code is located in a single Java virtual machine. Application Server PE 9 Beta also introduces a new feature called "on-demand initialization of application server services." With this feature, the Application Server can start with minimum services; additional services are started only when required by a given user application or action. This reduces both the server startup time and memory footprint. A variety of developer and administration tools are bundled with Application Server PE 9 Beta -- including admin GUI, command-line interface, verifier, upgrade tool, Apache ANT, and log viewer (please refer to the summary article on version 8 of Application Server for more details). The new Java database, based on the Apache Derby project, is supported and integrated as part of the Application Server. For developers who use an integrated development environment (IDE), Application Server is supported by NetBeans, Sun Java Studio Creator, and Sun Java Studio Enterprise. And under development in a GlassFish community project is a plugin for Eclipse. Web Services Management
Web services are first-class manageable objects in Application Server PE 9 Beta. Web services deployed to the Application Server are thus automatically discovered and can then be managed and monitored. If monitoring is enabled for a web-service endpoint, information such as response time, throughput, and number of requests and faults is collected and can be viewed through the admin GUI. SOAP message content can also be examined. Meanwhile, a web-service testing page can automatically be generatedeliminating the need for explicit web-service client development. Call Flow Monitoring
Application Server PE 9 Beta can be configured to monitor an incoming request as it flows through various containers in the application server and through the user application code. For example, the Application Server can break down the time spent in the web container, web application code, EJB container, and EJB application code. The collected information is stored in a database and is then available for query and analysis. Self-Management Rules
With the powerful and flexible infrastructure of Application Server PE 9 Beta, you can automate application server management tasks by setting up a self-management rule. A self-management rule consists of an event and an action. Examples of events include message logging, monitoring threshold, timer, and JMX notifications. Actions are logic defined by the user, which is then encapsulated in a JMX managed bean (MBean). When an event that matches one of the events defined in a self-management rule is triggered, the associated action is executed. For example, an administrator might define a management rule such that he or she receives email when a SEVERE message is logged in the application server. Java Web Start Software
In addition to defining server-side components like EJB components and servlets, the Java EE platform defines application clients. Typically, these are rich UI applications that run on client machines and connect to the Application Server for retrieval and processing of backend data. With Application Server PE 9 Beta, users can deploy a Java EE application client to the Application Server and then take advantage of Java Web Start software for distribution of the application to client machines. By visiting a single URL in a user's browser, Java Web Start software transparently retrieves and installs the bits necessary to run the Java EE application client. The downloaded bits are cached and can be reused in subsequent sessions. That means no more manually copying and installing the application client bits on individual client machines. Performance
In addition to startup, memory footprint, and deployment performance improvements, Application Server PE 9 Beta features increased runtime performance. The server includes a highly scalable HTTP connection handler that is implemented with lower-level Java NIO primitives and that can handle thousands of connections with a small number of threads. Application Server PE 9 Beta supports the use of the Fast Infoset standard to reduce the size and processing time of XML and SOAP messages. Depending on the size of the XML messages, processing time is 3 to 5 times faster, and message size is 1.3 to 5 times smaller. See Sun's Fast Infoset article for more details. Application Server PE 9 Beta also provides 64-bit support in the Solaris operating system, so the server benefits from more than 4 gigabytes of virtual address space. Open Source and GlassFish Community
In June 2005, Sun launched the GlassFish community with the goal of developing a free, open-source, commercial-grade application server that implements the newest features of the Java EE 5 platform and related enterprise technologies. Application Server PE 9 Beta is based on the source code developed by Sun engineers and a GlassFish community of over 1100 members. Members participate in this community by exchanging information through a discussion forum and mailing list, filing defects and request for enhancements in the public issue tracker, and proposing changes to the source code. The Aquarium, a group blog, collects news from and about the GlassFish community and offers tech tips from a variety of sources. Application Server-related add-ons, plugins, and technology projects can also be found on the GlassFish project web site. References
Learn more about Sun Java System Application Server and the J2EE platform:
|
| ||||||||||||||||||||||
|
| ||||||||||||