Reading Notes: Tutorial for building J2EE Applications using JBOSS and ECLIPSE

2010-07-11  来源:本站原创  分类:Java  人气:177 

Tutorial for building J2EE Applications using JBOSS and ECLIPSE

Chapter2:

The Java 2 Enterprise Edition (J2EE) is a multitiered architecture for implementing enterprise-class applications and web based applications.

Application clients and applets are components that run on the client.
Java Servlet and JavaServer Pages technology components are Web components that run on the web server. Enterprise JavaBeans components (enterprise beans) are business components that run on the application server.

Reading Notes: Tutorial for building J2EE Applications using JBOSS and ECLIPSE

J2EE applications are made up of different components. A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its
helper classes and files and that communicates with other components in the application. The J2EE specification defines the following J2EE components:
Application clients and applets are components that run on the client.
Java Servlet and JavaServer Pages technology components are Web components that run on the web server.
Enterprise JavaBeans components (enterprise beans) are business components that run on the application server.

All these J2EE components are assembled into a J2EE application, verified to be well formed and in compliance with the J2EE specification, and deployed to production,
where they are run and managed by the J2EE application server.
In addition to these primary components, it includes standard services and supporting technologies which are:
Java Database Connectivity (JDBC) technology provides access to relational database systems.
Java Transaction API (JTA) or Java Transaction Service (JTS) provides transaction support for J2EE components.
Java Messaging Service (JMS) for asynchronous communication between J2EE components.
Java Naming and Directory Interface (JNDI) provides naming and directory access.

Reading Notes: Tutorial for building J2EE Applications using JBOSS and ECLIPSE

The figure above shows communication with business components, where an enterprise bean receives data from client programs, processes it (if necessary), and sends it
to the enterprise information system tier for storage. An enterprise bean also retrieves data from storage, processes it (if necessary), and sends it back to the client
program.
There are three kinds of enterprise beans: session beans (stateless and stateful), entity beans (bean managed and container managed), and message-driven beans. A session bean represents a transient conversation with a client. When the client finishes executing, the session bean and its data are gone. In contrast, an entity bean represents persistent data stored in one row of a database relation / table. If the client terminates or if the server shuts down, the underlying services ensure that the entity
bean data is saved. A message-driven bean combines features of a session bean and a Java Message Service (JMS) message listener, allowing a business component to receive JMS messages asynchronously.
Note: Java Beans are not considered J2EE components by the J2EE specification as JavaBeans are different from Enterprise Beans. JavaBeans component architecture can be used in both server and client tiers to manage the communication between an application client or applet and components running on the J2EE server or between server components and a database, whereas Enterprise JavaBeans components are only used in the business tier as a part of the server tier. JavaBeans have instance variables and has an accessor and mutator methods to access properties of bean or say, accessing the data in the instance variables which simplifies the design and implementation of JavaBeans components.

Packaging

In order to deploy a J2EE application, after developing different components, it is packaged into special archive files that contain the relevant class files and XML deployment descriptors. These XML deployment descriptors contain information specific to each bundled component and are a mechanism for configuring application behavior at assembly or deployment time. These are bundled into different archive types for different component types.

Reading Notes: Tutorial for building J2EE Applications using JBOSS and ECLIPSE

Web components are archived in Web Archive (. War) file which contains servlets, JSP and static components such as HTML and image files. The. War file contains classes and files used in web tier along with a Web component deployment descriptor.

Business components are archived in Java Archive (. Jar) file which contains an EJB deployment descriptor, remote, and object interface files along with helper files required by EJB component.
Client side class files and deployment descriptors are archived in Java Archive (. Jar) file which make up the client application.
J2EE application is bundled in an Enterprise Archive (. Ear) file which contains the whole application along with deployment descriptor that provides information about the application and its assembled components.

J2EE Platform Roles:

Building the different components of a J2EE application involves various roles in the development, deployment and management of an enterprise application.

Distributed Architecture in J2EE:? ? ?

Java Naming Directory Interface (JNDI) Architecture:? ? ?

相关文章
  • Reading Notes: Tutorial for building J2EE Applications using JBOSS and ECLIPSE 2010-07-11

    Tutorial for building J2EE Applications using JBOSS and ECLIPSE Chapter2: The Java 2 Enterprise Edition (J2EE) is a multitiered architecture for implementing enterprise-class applications and web based applications. Application clients and applets ar

  • smartrcp using Java and Flex open source platform for building desktop applications 3 (using the eclipse plugin extension smartrcp platform) 2010-04-29

    1: Background: Adobe AIR platform, the biggest disadvantage is that it is difficult on the basis of the platform to extend the program's functionality is limited by the standards of the platform API, but smartrcp eclipse plug-in system using a good p

  • Building high-performance J2EE applications 10 Tips 2010-03-30

    Construction of high-performance J2EE applications need to know not only the implementation of commonly used techniques. Here are the 10 most commonly used effective methods, can help architects to quickly become experts in this field. The basis of J

  • Ten high-performance J2EE applications build skills [transfer] 2010-12-12

    Building high-performance J2EE applications need to know not only the implementation of commonly used techniques. Here are the 10 most commonly used effective methods, can help architects to quickly become experts in this field. Based on Java perform

  • "J2EE development without EJB" reading notes (2) 2010-02-03

    Productivity Automatic Code Generation For general applications, instead of using code generation to deal with, it is better to find ways to reduce the complexity, such as the use of design as simple as possible, using a suitable framework to avoid d

  • Reading Notes: Your First Cup: An Introduction to the Java EE Platform 2010-07-10

    Reading Notes: Your First Cup: An Introduction to the Java EE Platform 1. Differences Among Three platforms Java technology is both a programming language and a platform. The Java programming language is a high-level object-oriented language that has

  • Reading Notes: Enterprise JavaBeans, 3.0 Chapter 1. Introduction 2010-07-31

    Reading Notes: Enterprise JavaBeans, 3.0 Chapter 1. Introduction 1.1. Server-Side Components In business systems, object-oriented languages are used to improve development of GUIs, to simplify access to data, and to encapsulate the business logic. A

  • Use AppFuse to build J2EE applications faster 2009-07-14

    In this paper, a J2EE developer's point of view, through the application of a simple example, in the convergence of the basis of personal experience, introduced a step-by-step how to use AppFuse to build J2EE projects. By reading this article, reader

  • An Exception Handling Framework for J2EE Applications 2010-03-30

    [Quote] http://onjava.com/lpt/a/6415 [/ quote] <! - ISI_LISTEN_START --><!-- This article is brought to you by Oreilly Net, your source for all Java news. --><!-- CS_PAGE_BREAK -> An Exception Handling Framework for J2EE Applications by

  • javascript DOM programming arts reading notes 2010-09-06

    javascript DOM programming arts reading notes The first part of the directory Chapter 1 Origin of JavaScript 1.1 JavaScript 1.2 A Brief History of the browser war 1.3 standard 1.4 Summary Chapter 2, JavaScript 2.2 Grammar 2.1 Grammar 2.3 statement pr

  • <J2EE Development without EJB> reading notes (2) 2010-03-29

    Productivity Automatic Code Generation For general applications, instead of using code generation to deal with, it is better to find ways to reduce the complexity, such as the use of design as simple as possible, using a suitable framework to avoid d

  • Reading notes on the code refactoring (1) 2010-04-16

    AgileJava reading notes (1) AgileJava is a test-driven development based on the method to help you learn how to polish your Java code, and thus obtain a stable object-oriented design and high-maintainable, high-quality systems. The book with a studen

  • Reading notes (1) array 2010-05-04

    Reading notes 1. In c + +, there are two ways the array statements: one is to use the built-in array; Another is to use Vector. Vector is much easier to use and more secure than the basic element array, and should therefore be preferred to use Vector

  • <Software Architecture Design> reading notes notes 2010-05-07

    "Software Architecture Design" reading notes http://uptodate.javaeye.com/blog/346676 Domain model lack of knowledge, not in-depth understanding of Robustness analysis?

  • Proficient Spring: Reading Notes (1) 2010-05-26

    1, Spring IoC, dependency injection design patterns by means of, so developers do not care about the life cycle of the object itself and its relations, but also to change Good developers use of the model. Management of a single object is not a diffic

  • Construction of five high-performance J2EE applications, the core strategy 2010-10-15

    Construction of five high-performance J2EE applications, the core strategy For J2EE, we know that when the development application, the architecture design phase of the decision will application performance and scalability far-reaching impact. Now, w

  • Reading Notes explain design pattern mode (Interpreter pattern) 2010-10-28

    Interpreter Pattern: Given a language, define a representation of its grammar, and define an interpreter, the interpreter uses the representation to interpret sentences in the language. By the definition, does not explain the mode is a commonly used

  • Reading Notes: Based on fuzzy c-means algorithm for data classification and forecasting of space - Hu Caiping. Qin Xiaolin 2010-11-06

    Reading Notes: Based on fuzzy c-means algorithm for data classification and forecasting of space - Hucai Ping, Qin Xiaolin Background Introduction c-means c-means clustering method is the most common and most commonly used method, in the "Data Mining

  • JUnit In Action Reading Notes (1) 2008-03-29

    JUnit In Action Reading Notes (1) Part1 JUnit distilled chapter1 will teach you what the JUnit framework is and what problems it solves. chapter2 will take you on a discovery tour of the core JUnit classes and how to best use them. chapter3, you'll p

  • Quickly build J2EE applications using AppFuse (a) 2011-01-15

    On AppFuse's features, architecture, and why to use AppFuse, AppFuse Matt Raible, founder of the "seven reasons to use AppFuse," a paper has done a very detailed exposition, not going to repeat here. This article will focus on practice, namely,