Knowledge sharing in Java

Source: Internet
Author: User

Sun's Java EE (JAVA2 Enterprise Edition) architecture provides a middle-tier integration framework to meet the needs of applications that require high availability, reliability, and scalability without too much expense. By providing a unified development platform, Java EE reduces the cost and complexity of developing multi-tiered applications, while providing strong support for existing application integration, full support for Enterprise JavaBeans, good Wizard support for packaging and deploying applications, adding directory support, enhanced security, Improved performance. This paper describes how to simplify the application development of Java EE, hoping to enable readers to have a deeper understanding of the Java EE.

Java EE simplifies application development

In today's competitive market, organizations are facing a difficult challenge: to reduce costs and provide a wide range of e-commerce services, both within the shortened development cycle. To solve this problem, many companies are investigating how to use Java to implement business logic in the middle tier. Those Java users often find that development is simple and the speed of deployment becomes faster. In addition, the implementation of distributed Java applications can also improve scalability and reliability.

In the past, companies that chose Java had experienced security and performance issues. In many places, these problems reduce the overall value of Java within the enterprise. Sun has made every effort to address these issues, and its recent release of the Java 2 Enterprise (EE) Software Development Kit (SDK) is the result of this effort.

The Java EE is a standard architecture definition that takes advantage of the language, and today it makes it easier for companies to accelerate distributed deployments in the middle tier. Using this architecture in enterprise development, developers will not have to worry about the "plumbing" needed to run critical business applications, so they can focus on the design of business logic and the presentation of applications.

Sun's Java EE components are composed of several parts, including an application programming model, a standard implementation platform, a compatibility suite to test for Java EE, and implementation reference. This latest version of Java EE consolidates the features in the 2 Standard Edition and enhances scalability while cleverly handling the performance and security issues that plague Java. Sun has also added full support for Enterprise JavaBeans, Java Servlet APIs, and Java Server Pages (JSP). The ultimate goal is to be an architecture that enables enterprise developers to dramatically reduce time-to-market.

The Java EE model

Anyone who is tasked with creating highly available and reliable business applications knows how complex this work is. Building the middle-tier plumbing needed to access and manage data and applications from a wide variety of enterprise resources often takes a lot of time and money.

The application programming model of the Java EE (also called the Java EE Blueprints) provides a system model that includes a suite of documents and instances for implementing a multi-tier application based on the Java EE, partly simplifying this complex work. It should be used as a principle for developers to design and optimize components in order to divide the development effort strategically and allocate technical resources. Following this model will ensure that one of the Java EE applications is exactly the same as another.

The Java EE application programming model requires developers to divide their work into two categories: business logic and presentation logic. The rest is automatically processed by system resources. Instead of coding for middle-tier pipelines, developers can spend more time on business and presentation logic, which is a welcome shift for companies that focus on shortening the project cycle.

Java EE Platform

The Java EE platform is the standard environment for running the Java EE application. It consists of the Java EE Deployment Specification (a set of standards that all Java EE Platform products must support), the IETF standard set, and the CORBA standard. The latest Java EE 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.

As mentioned earlier, the Java EE supports EJB, so developers can perform multi-user and transactional functions. When running on a Java EE server, Enterprise JavaBeans divides the application logic into reusable and extensible code snippets. Enterprise JavaBeans is not a new feature of this product, but by defining standard client and service APIs for use, Java EE enhances their capabilities and portability.

EJB runs within a container of servers that provide all typical middle-tier services, such as transaction management, security, remote client connectivity, lifecycle management, and database connection buffering.

To allow the transaction system to run in the presence of an EJB container, the developer simply defines the transaction properties of the beans in the deployment profile. This eliminates the need to develop code to manage error-prone transaction boundaries.

Java EE Server

Sun's EE server provides naming and directory services through Java naming and directory interface (JNDI), authentication, HTTP, and the ability to be compatible with Enterprise JavaBeans. Jndi is a standard extension of the Java platform, providing Java-enabled applications with unified interfaces, including LDAP, to naming and directory services within the enterprise.

The Java servlet Server is also leveraging the JavaScript technology. A Servlet, which can be thought of as a small program running on a server, provides developers with a platform-independent approach to creating Web-based applications based on component, unlike the performance limitations of other methods, such as CGI programs. A servlet is a simple and similar technique for extending Web server functionality, and because it is written in Java, it has access to the entire Java API library, including the JDBC API for accessing the enterprise database.

JSP is an extension of Java servlet. The servlet provides the development and display of interactive Web pages from the server, and JSP has been further improved, making it easier to create and support HTML and XML pages that combine static and dynamic content.

Java EE value

If you want to make sure that your application is built in a consistent way that is scalable, reliable, and compatible with other enterprise applications, it is recommended that you adopt a Java EE. Its deployment and deployment skills, rapid execution speed, and security improvements make it a value-for-money technology that can host your enterprise application framework. It relieves the burden of some middle-tier plumbing projects, and developers will be intrigued by the recoding.


Knowledge sharing in Java

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.