Simplify EJB development using EJB3.O (1)

Source: Internet
Author: User
Use EJB3.O to simplify original EJB development: Debu Panda
We introduce EJB to construct distributed components. It was born to solve all the problems and complexity of CORBA. After several important version updates and many new features, EJB has become the core of J2EE. In the early days, many developers were addicted to using EJBs in their projects even without any significance. While they discovered that the project they were using had no qualitative changes, it became a trend to condemn EJB.
The development of EJBs has never been simpler or even more complicated in earlier EJB version specifications. EJB is compared to an elephant due to its complexity and heavyweight features. Developers feel that EJB is like an extra layer of sweet syrup on a donut. Today, when low carb and Atkins diet are widely used, the EJB expert committee has no choice but to publish EJB specifications that reflect low carb to simplify EJB development. At the JavaOne conference, EJB3.0 Expert Committee released an Example map of the first lightweight model known as EJB3.0, which is a public specification.
At first glance, it seems very good to see the new EJB model. In this article, we will discuss how EJB3.0 uses a smaller and sophisticated assembly to attract developers. In the next article, we will discuss how EJB3.0 simplifies the persistence model.
Defects
Before we begin to discuss the new features brought about by EJB3.0, let's first analyze the complexity and complexity of the current EJB model.
The current EJB model requires many component interfaces and many unnecessary rollback methods.
The component interface needs to implement EJBObject or EJBLocalObject and handle many unnecessary exceptions.
The description of EJB deployment is complex and error-prone.
The development and management of container persistence management based on the EJB model is too complicated. Many basic features are not taken into account. For example, the standard method for defining a primary key using database sequences and EJBQL is very limited.
EJB components are not object-oriented. For example, there are too many restrictions when using inheritance and polymorphism.
One major drawback of EJB is that you cannot test an EJB model from the EJB container and cannot debug an EJB in the container. This is a terrible thing for developers.
If you use EJB, you need to be familiar with the complex process of calling and searching for EJB. Obviously, you only need to use EJB in the program, but you must know the detailed details of JNDI.

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.