What technologies does EJB use?

Source: Internet
Author: User

EJB includes Session Bean, Entity Bean, and message driven bean, which are implemented based on technologies such as JNDI, RMI, and JTA.

The biggest problem with EJB is not efficiency, but complexity. EJB provides a package of solutions for the business layer and persistent layer, which can provide powerful distributed capabilities for J2EE applications. In Entity Bean, this capability is mainly embodied in Distributed Transaction Management and load balancing. This is the biggest advantage of EJB and its biggest weakness: For applications without distributed requirements, ejbs increase greatly and are of no value.

The following questions help you better understand why EJB is used

1. Distributed problem: If you have several servers that run on the same system, if you write network communication implementation and write a large number of sockets on your own, the complexity will die, and errors will still occur.

2. Transaction problems:

Other problems include multithreading and security.

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.