0% found this document useful (0 votes)
81 views3 pages

Q:36) Explain Architecture of J2EE. List Out Java Technologies Supported by J2EE Along

The J2EE architecture has a J2EE server that provides services like naming, directory, authentication, HTTP access, and EJB container. The EJB container runs enterprise beans and provides transaction management, security, remote connectivity, lifecycle management, and database connection pooling services. The main Java technologies supported by J2EE are EJBs, JSPs, servlets, JDBC, and JMS.

Uploaded by

Vishvas Patel
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views3 pages

Q:36) Explain Architecture of J2EE. List Out Java Technologies Supported by J2EE Along

The J2EE architecture has a J2EE server that provides services like naming, directory, authentication, HTTP access, and EJB container. The EJB container runs enterprise beans and provides transaction management, security, remote connectivity, lifecycle management, and database connection pooling services. The main Java technologies supported by J2EE are EJBs, JSPs, servlets, JDBC, and JMS.

Uploaded by

Vishvas Patel
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Q:36)Explain architecture of J2EE.

List out java technologies supported by J2EE along

J2EE Architecture The JavaTM 2 SDK, Enterprise Edition (J2EE SDK) is the reference implementation provided by Sun Microsystems, Inc. The following figure shows the major elements of the architecture for the J2EE SDK:

FIGURE 1-2 J2EE Architecture

J2EE Server The J2EE server provides the following services:

Naming and Directory - allows programs to locate services and components through the Java Naming and Directory Interface (JNDI) API Authentication - enforces security by requiring users to log in HTTP - enables Web browsers to access servlets and Java Server Pages (JSP) files EJB - allows clients to invoke methods on enterprise beans

EJB Container Enterprise bean instances run within an EJB container. The container is a runtime environment that controls the enterprise beans and provides them with important system-level services. Since you don't have to develop these services yourself, you are free to concentrate on the business methods in the enterprise beans. The container provides the following services to enterprise beans:

Transaction Management Security Remote Client Connectivity Life Cycle Management Database Connection Pooling

Transaction Management When a client invokes a method in an enterprise bean, the container intervenes in order to manage the transaction. Because the container manages the transaction, you do not have to code transaction boundaries in the enterprise bean. The code required to control distributed transactions can be quite complex. Instead of writing and debugging complex code, you simply declare the enterprise bean's transactional properties in the deployment descriptor file. The container reads the file and handles the enterprise bean's transactions for you. Security The container permits only authorized clients to invoke an enterprise bean's methods. Each client belongs to a particular role, and each role is permitted to invoke certain methods. You declare the roles and the methods they may invoke in the enterprise bean's deployment descriptor. Because of this declarative approach, you don't need to code routines that enforce security. Remote Client Connectivity The container manages the low-level communications between clients and enterprise beans. After an enterprise bean has been created, a client invokes methods on it as if it were in the same virtual machine. Life Cycle Management An enterprise bean passes through several states during its lifetime. The container creates the enterprise bean, moves it between a pool of available instances and the active state, and

finally, removes it. Although the client calls methods to create and remove an an enterprise bean, the container performs these tasks behind the scenes. Database Connection Pooling A database connection is a costly resource. Obtaining a database connection is timeconsuming and the number of connnections may be limited. To alleviate these problems, the container manages a pool of database connections. An enterprise bean can quickly obtain a connection from the pool. After the bean releases the connection, it may be re-used by another bean. Web Container The Web container is a runtime environment for JSP files and and servlets. Although these Web components are an important part of a J2EE application, this manual focuses on enterprise beans. For more information on developing Web components, see the home pages for the Java Server Pages and Java Servlet technologies. List out java technologies supported by j2ee along with their applications.

J2EE is comprised of many APIs that can be used to build enterprise applications. Although the total list of APIs initially seems overwhelming, it is worth bearing in mind that some are primarily used by the J2EE environment in which your application executes, while some provide services that your specific application may not require. Therefore, it is worth remembering that you don't have to use all of them in order to build J2EE applications. For completeness, however, the full list of technologies that make up J2EE is as follows:

Java Servlets Java Server Pages (JSP) Enterprise JavaBeans (EJB) Java Message Service (JMS) Java Naming and Directory Interface (JNDI) Java Database Connectivity (JDBC) Java Mail Java Transaction Service (JTS) Java Transaction API (JTA) J2EE Connector Architecture (J2EE-CA, or JCA)

From a developer perspective, the main technologies are EJB, JSP, Java Servlets, JDBC and JMS, although JNDI is used for locating EJBs and other enterprise resources. For the moment, let's take a quick look at some of these technologies before moving on to see how to get started with J2EE.

You might also like