Basic summary of the Java EE (5)--EJB

Source: Internet
Author: User

What is EJBJB is actually the Enterprise Java Beans. EJB is an important part of the Java EE platform. The Java EE platform is a component-based, enterprise-class application architecture that provides multiplelevel, distributed and highthe functional characteristics of the transaction.
EJB provides a framework that takes into account robustness, high scalability, and high-performance component-based enterprise application development and deployment. An EJB shouldcan be deployed with programson any application server that complies with the j2ee1.3 standard specification. We will discuss EJB3.0 in this tutorial.

An EJB is a component that runs on a stand-alone server, and the client invokes the EJB object over the network.


EJB Types



two states of EJBA stateless session Bean is an enterprise bean that is typically used to perform standalone operations. Like its name, a stateless session bean does not have any offof the client in the Unitedstate, but it may maintain the state of its instance. The EJB container typically creates a container pool and objects of several stateless beans, and uses these objects to handle client requests. Because of the container pool, the value of the instance variable does not guarantee the same across lookup/method calls.
A stateful session Bean is an enterprise bean that holds the session state type of the client. There is a stateful session bean as each of its name-related client states remains in its instance variable. The EJB container creates a separate stateful session bean to handle each request from the client. A stateful session bean is destroyed whenever the request is scoped.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Basic summary of the Java EE (5)--EJB

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.