[Favorites] J2EE beginners need to understand five issues

xiaoxiao2021-03-06  38

First, J2EE proposed background

1. The needs of enterprise application framework

In many enterprise applications, such as database connections, mail services, transaction, etc. are some universal enterprise demand modules. If each development is completed by developers, the development cycle length and code will be reliable. Sexuality and other problems. So many big companies have developed their universal module services. These servic software series are intermediate.

2. For general purpose, it is necessary to make specifications, otherwise universal

On the above demand, many companies have developed their own middleware, but their communication with users is different, causing users to assemble different middleware of each company in a piece of self. Thereby generating bottlenecks. So the concept of standard. In fact, J2EE is a series of standards based on Java technology.

Note: Intermediates interpret the middleware between operating systems and higher first-class applications. The function of him is: isolating the app runs the environment with the operating system, so that application developers do not have to worry about more system issues, but directly pay attention to the ability to solve the problem. The concept of the container that we will say later is one of the middleware.

Second, the relevant noun explanation

Container: A role acting as an middleware

Web container: Provides an environment to the application component (JSP, servlet) that interacts the JSP, Servlet directly more in the container, and does not have to pay attention to other system issues. There is mainly a web server to achieve. For example: Tomcat, WebLogic, WebSphere, etc. The interface provided by the container strictly abides by the Web & NbsPApplication standard in the J2EE specification. We call the Web Server of the above standards called the web container in J2EE.

EJB container: Enterprise & nbspjava & nbspBean container. More industry segments. He provides various management functions that run the component EJB. As long as the EJB that satisfies the J2EE specification is placed in this container, it will be managed by the container. And you can obtain system level services through ready-made interfaces. For example, email services, transaction management.

The web container and EJB containers are generally the same, and more differences are isolated on the outside environment. Web containers are more in harmony with HTTP-based requests. The EJB container is not. It is more with databases, other services. But they are all interactive interactions with the outside to mitigate the burden on the application. For example, servlet does not have to care about the details of HTTP, directly reference the environment variable session, request, response, EJB does not have to care about database connection speed, various transaction control, and is done directly from the container.

RMI / IIOP: Remote Method Calling / Internet Object Request a Intermediary Agreement, which is primarily used for remote call services. For example, remotely running a program, which provides stock analysis services, we can implement them directly on your local computer. Of course, this is to communicate between heterogeneous systems through a certain specification. RMI is unique to Java.

JNDI: Java Name Directory Service. The main functionality is: Provide a directory system that allows applications from all over its own index to meet the functionality of fast finding and positioning distributed applications.

JMS: Java Message Service. It mainly implements communication between the various applications. Includes point-to-point and broadcast.

JavaMail: Java Mail Service. Provides mail storage, transfer features. He is the core of implementing mail function in Java programming. The Exchange development package in MS.

JTA: Java transaction service. Provide a variety of distributed transaction services. The application only needs to call the interface provided.

JAF: Java Security Authentication Framework. Provide some security control frames. Let developers implement their own personal safety control strategies through a variety of deployment and customization.

EAI: Enterprise Application Integration. It is a concept that involves a lot of technology. J2EE technology is a good integration implementation.

Third, J2EE's superiority

1. Based on Java technology, platform-independent performance is prominent

2. Open standards, many large companies have implemented application servers supported by this specification. Such as BEA, IBM, Oracle, etc. 3. Provide quite professional general software services.

4. Provide an excellent enterprise application framework, laying the foundation for fast and high quality development

Fourth, architecture map

Mailto: luopc@edu-edu.com.cn Learn more detailed general system content, please give me a letter.

V. Status

J2EE is a set of enterprise application specifications developed by Sun. The highest version is now 1.4. Support J2EE application servers include IBM WebSphere Application Server, BEA WebLogic Server, JBoss, Oracle Application Server, Sun ONE Application Server, etc. .

转载请注明原文地址:https://www.9cbs.com/read-63410.html

New Post(0)