Top 10 reasons for choosing Seam

Source: Internet
Author: User
Tags jboss jbpm

Translation:Pisces bottle Source:JBoss

Abstract:This article summarizes the advantages of seam from multiple perspectives.

I. The quickest way to add Ajax features

In terms of functionality, Ajax changes the web interaction model. The synchronous and coarse-grained requests used by traditional web clients cause many server applications to eat a small amount of cache without causing cache-level concurrent operations.

In many cases, the "stateless" architecture is only a basic solution, but far from enough! Ajax clients connect to servers through many asynchronous, parallel, and fine-grained requests, allowing developers to easily connect to and obtain remote "Database" information.

However, if the status is saved to the memory during interaction, the parallel-related bugs may be very dangerous because the Java EE platform does not process session-level concurrency.

In its initial design, seam was conceived as an Ajax-based integration of parallel models and state management models.

Seam1.1 integrates many JSF-based open-source Ajax solutions, such as icefaces and ajax4jsf, and adds the seam status and parallel management engine. Developers can easily apply Ajax in their programs without learning JavaScript, and will stay away from potential bugs and performance problems when using Ajax independently.

II. The easiest way to start using EJB 3.0

EJB 3.0 is a mature transaction component model and the latest JPA (Java persistence layer API) technology. However, few Java Web application frameworks support EJB 3.0. In this way, you need to write your own integrated code. However, in most cases, developers cannot fully utilize the advantages of EJB 3.0.

EJB 3.0 is the core technology used by seam. You can use the Integrated EJB 3.0 component model everywhere. In the seam application, each class is an EJB component. You don't even need to write any integrated code to "Beautify" Your framework.

Of course, you can also choose not to use EJB 3.0. JBoss Seam enables you to "have both fish and bear's paw ".

III. The best way to fully explore JSF features

JSF already has many Component Libraries and plug-ins for use, and is well deserved to become the most attractive web development framework in the Java field. However, JSF relies heavily on xml configuration and does not have many features to create rich web pages.

Seam will replace the tedious xml configuration with annotations to reduce the amount of code and improve the development efficiency.

Seam has extended JSF functions in many aspects, including multi-window operations, workspace management, model-based verification, jbpm-based page stream, internationalization, and page segment cache.

Seam even adds a mechanism for controlling tagged pages.

JSF does not involve access to transaction resources. seam takes this into account and seamlessly integrates JTA, JPA, and EJB 3.0 with JSF.

IV. The simplest way to implement business process management (BPM)

Jbpm is a solution for Web applications with complex personnel collaboration or complex user interaction.

BPM not only facilitates developers and analysts to model, apply, and optimize business processes, but also evaluates the efficiency of business processes throughout the operation and management processes and explores problems that may arise in business processes.

Seam is deeply integrated with jbpm. Using jbpm for task management and page flow management can be very simple.

The combination of seam and jbpm will reduce the development time of some projects by about one month.

5. Making crud as simple

Seam also handles complicated enterprise applications: add, delete, modify, and query. However, this does not mean that the solution is difficult to use.

In data-driven applications, seam integrates existing easy-to-use data layer frameworks, including JPA and hibernate, this allows developers to efficiently develop database applications using some database reverse engineering tools and command line tools.

6. The persistence layer will be a piece of cake"

Seam comes from the hibernate community and is designed and developed by Gavin king, the creator of hibernate.

The seam session model solves the persistent layer problems caused by the traditional Stateless web application architecture. Whether you are using hibernate or JPA, using extended persistent context in Seam will make development simple, at the same time, developers can avoid unnecessary duplicate States when using persistent context in the integrated environment.

VII. annotation Functions

Seam is the first program model that uses the Java 5 annotation function from the persistence layer to the presentation layer.

You will no longer feel lost due to complicated XML configurations. At the same time, developers can also use XML in seam, which provides a mature XML-based component configuration mechanism.

8. Cheering for automated Integration Testing

Automatic unit tests are required for any project, but it is very dangerous to rely solely on unit tests. Many buckets appear between components or between components and containers. Unit tests cannot capture container behaviors or interactions between components.

Seam introduces a new way: "Automated integration testing ". You can simulate all the business flows of each request or session to test all Java code in the application from the persistent layer to the presentation layer.

IX. Combination of open standards and open source

Seam is built on open-source projects such as JSF and EJB 3.0 that implement open standards and integrates other excellent open-source projects, such as Hibernate, jbpm, facelets, and drools.

Seam creators are expert group members in areas such as EJB, JPA, bean validation and JSF, and lead the development of Web beans specifications (JSR-299) expert Group-used to bring some ideas in seam into the Java EE standard.

The seam project is an open-source framework fully built on the idea of an open-source project "Innovating and improving the Java platform.

10. Quick Start

If you try it out, you will love it!

Review: Camels

If the original article is reprinted, please note: It is reprinted from the JBoss Seam Chinese site
[Http://www.jbossseam.com/]
Link: http://www.jbossseam.com/2007/11/10/ten-good-reasons-to-use-seam/

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.