Analysis on J2EE, J2SE, and j2s

Source: Internet
Author: User

 


With the rapid development of Internet networks, Internet-based enterprise applications require that software platforms be open, distributed, and platform independent. As a result, technologies such as RPC/COM/CORBA have emerged one after another, but these technologies have many shortcomings and limitations in practical application. Their specific protocols are difficult to pass through the firewall, so they are not suitable for application development on the Web. To further develop Web-based applications, Sun ONE (Open Net Environment Development Network Environment) and Microsoft's. NET and other Web Service technical systems have emerged.

The Sun ONE architecture is centered on the Java language, including J2SE/J2EE/J2EE and a series of standards, technologies and protocols. It includes Sun's unique iPlanet Software Series, including popular LDAP directory server software on the market and Forte for Java-a software tool that allows you to write Java in any environment. We can easily obtain and use products including the Java integrated development environment, Java database and middleware (Application Server) Server for free on the Internet, as well as their source code. Sun ONE is closer to or can meet the distributed, development, and platform-independent requirements of smart Web service providers on the Internet.

With the continuous development of Java technology, it is further divided into: J2EE for Enterprise network applications (Java 2 Enterprise Edition), J2SE for general PC applications (Java 2 Standard Edition) and Java 2 Micro Edition for embedded devices and consumer appliances. This article introduces Sun ONE's core Java application, J2SE, J2EE, and j23.


J2EE Technology Application


J2EE is a new concept model launched by Sun, which is more advantageous than the traditional Internet application model.

J2EE Model

The J2EE Application Programming Model (J2EE Blueprints) provides a system model for implementing J2EE-based multi-tier applications and instance suites, simplifying this complex work. It is used by developers to design and optimize components so that developers can divide their development work according to their policies.

The J2EE application programming model requires developers to divide their work into two types: business logic and presentation logic. The rest are automatically processed by system resources and do not need to be encoded for the middle layer pipeline. In this way, developers can spend more time on business logic and presentation logic. For companies that focus on shortening the project cycle, this change is very popular.

J2EE Platform

The J2EE platform is a standard environment for running J2EE applications. It consists of J2EE deployment specifications (a set of standards that must be supported by all J2EE platform products), IETF standard sets, and CORBA standards. The latest J2EE platform also adds the JavaBean Component Model. Developers can use the JavaBean Component Model to customize Java class instances and access Java classes through defined events.

J2EE supports EJB, so developers can execute multi-user transaction functions. When running on a J2EE Server, Enterprise JavaBeans divides the application logic into reusable and scalable code segments. Enterprise JavaBeans are not new features, but by defining standard clients and service APIs, J2EE enhances its capabilities and portability.

EJB runs in a container of the server and provides all typical middle-layer services, such as transaction management, security, remote customer connection, lifecycle management, and database connection buffering. To enable the transaction system to run in the presence of an EJB container, developers only need to define the transaction attribute of Beans in the deployment description file.

J2EE implements its advantages by defining a set of standard structures, such:

1. J2EE Application Programming Model is a standard design Model used to develop multi-level and thin customer user programs;

2. J2EE Platform is a standard Platform for integrating J2EE applications and specifying a series of interfaces and methods;

3. J2EE Compatibility Test Suite is a set of compatible Test components used to check whether the product is compatible with the J2EE platform;

4. J2EE Reference Implementation, used to demonstrate J2EE capabilities.

J2EE Server

Sun's J2EE server provides naming and directory services through Java Naming and directory interfaces (JNDI), authentication, HTTP, and Enterprise JavaBeans compatibility. JNDI is a standard extension version of the Java platform. It provides Java-enabled applications with unified interfaces to naming and directory services in enterprises, including LDAP.

The J2EE server also uses Java Servlet technology. Java Servlet can be seen as a small program running on the server. It provides developers with a platform-independent method to create Web applications based on components. It does not have performance limitations as it does with CGI. Java Servlet is a simple technique for extending the functions of Web servers. Because it is written in Java, it can access the entire Java API library, including the jdbc api used to access the enterprise database.

JSP is an extension of Java Servlet. Java Servlet provides the development and display of interactive web pages from the server. Now JSP has been further improved, making it easier to create HTML and XML pages that support combination of static templates and dynamic content.

Security

The J2EE platform defines a standard public access control rule. When a program is developed on the Enterprise platform, it has been defined and explained by the programmer. J2EE also needs to provide a standard registration mechanism so that applications do not mix these registration mechanisms and logic, so that the source code does not need to be changed when the same work is executed in a large number of different environments. For example, J2EE application developers can specify several security levels. When users access data, they can write code to check the current user permission level. In the development phase, developers assign appropriate security levels to multiple groups of users, so that the application can easily determine the limit level before performing the restriction operation.

The J2EE platform is the best platform for Java enterprise-level applications. It allows programmers to quickly and quickly develop and distribute enterprise-level applications. The following are related technologies:

1. Enterprise JavaBeans Architecture, Enterprise JavaBeans defines an application interface. It allows programmers to quickly develop, publish, and manage cross-platform, component-based enterprise-level applications.

2. assumerver Pages, JSP technology provides a simple and fast way to create dynamic web Pages. With this feature, you can quickly develop Web-based applications that are irrelevant to the platform. Because JSP is very similar to ASP, it is easy for people familiar with ASP to learn it.

3. Java Servlet provides application interfaces. It allows you to quickly develop and expand server functions. As far as the development trend is concerned, it may replace CGI in the future.

4. J2EE Connector provides a standard structure to connect different enterprise information platforms.

5. Java Naming and Directory Interface (JNDI) provides a unified and seamless standard connection between the Java platform and commercial information. By using JNDI, programmers can transfer Java applications between enterprise naming and directory services.

6. Java Interface Definition Language (JIDL), which can be used to provide collaborative work. JIDL includes an IDL-to-Java compiler and Orb that supports IIOP (Internet Inter-ORB Protocol.

7. JDBC provides a unified interface for almost all databases and allows you to create advanced tools and interfaces.

8. java Message Service (JMS), which standardizes almost all enterprise-level messaging services, such as reliable query, publishing of messages, subscribing to magazines, and other applications of various PUSS/PULL technologies, and provides them with a standard interface.

9. Java Transaction API (JTA) provides an Advanced Management Specification for applications that can be processed in a distributed system.

10. JavaMail and JavaMail application interfaces provide a complete set of abstract classes for simulating mail systems. You can use JavaMail to create an email or message application.

11. RMI-IIOP, it can be used only Java technology and Java RMI interface development client and server remote interface.

J2EE binds a module with a fixed File Format: bind a J2EE application with the. ear file; bind an Enterprise Bean with the. jar file. For example,. the ear file contains. the xml file is used as its distribution description and contains one or more. jar and. war file; one. in addition to its distribution description, the jar file also contains. class file.

The development phase of J2EE applications is divided into four steps: 1. Enterprise Bean creation; 2. Web Component creation; 3. J2EE application assembly; 4. J2EE application distribution. The following is a list of J2EE compatible products:

BEA WebLogic Server 6.0, Borland App Server, HP Bluestone Total-e-Server, IBM WebSphere Application Server, IONA iPortal Application Server, iPlanet Application Server, Macromedia JRun Server, Oracle 9i Application Server, silverStrean Application Server, Sybase EAServer, TogetherSoft ControlCenter, and Java 2 SDK Enterprise Edition.

Application of j2-based Technology


Java 2 Platform Micro Edition is designed for the wireless electronics market, including JVM specifications and API specifications. Its API specification is based on J2SE (Java 2 Standard Editon. It defines a set of appropriate class libraries and Virtual Machine technologies. These technologies allow users, service providers, and device manufacturers to use a wide range of applications as needed through physical (wired) connections or wireless connections.

It is also known as Java 2 Micro version. It is used in a variety of consumer electronic products, such as smart cards, mobile phones, PDAs, and TV set-top boxes. Of course, it also provides consistent Java features, that is, cross-platform and secure network transmission. It uses a series of smaller packages, and Javax. microedition. io is a subset of J2SE packages. J2SE and J2EE can be upgraded.

Before the emergence of j2s, we were more exposed to Java cards, Embedded Java, and Real-Time Java. The Java card is the minimum Java subset customized for SIM card, smart card, and other devices, which is smaller than that of j2_, and less portable. Embedded Java configures Java class libraries and VMS (Virtual machines) for special users ). It has minimal resource requirements and can run on devices without graphical user interfaces and networks. It can add user-specific APIs, but it cannot be transplanted. Real-Time Java is implemented by the real-time custom Java expert group led by IBM and is still being improved. However, strictly speaking, none of them

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.