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.
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.
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.
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 : ???
- 大小: 27.8 KB
- 大小: 48.8 KB
- 大小: 64.5 KB
- 大小: 45.6 KB
分享到:
相关推荐
utorial for building J2EE Applications using JBOSS and ECLIPSE 介绍应用各种IDE编程的一本好书,英文版 建议有英文基础的下看看
《教程:使用JBOSS和ECLIPSE构建J2EE应用程序》是针对J2EE开发的一份详细学习资源,旨在帮助开发者在21天内掌握J2EE的基础知识和实践技能。本教程结合了理论讲解与实际操作,通过使用JBOSS应用服务器和ECLIPSE集成...
Analog Circuit Design Volume 1 - A tutorial guide to applications and solutions password: goCHINAgo!
Docker Docker Tutorial for Beginners Build Ship and Run 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
Express in Action is a carefully designed tutorial that teaches you how to build web applications using Node and Express. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub ...
**Java 2 Platform, Enterprise Edition (J2EE) 教程中文版** J2EE(Java 2 Platform, Enterprise Edition)是Oracle公司推出的用于构建企业级分布式应用的平台,它提供了一个标准化、模块化的框架,使得开发人员...
.NET Programming with Visual C++: Tutorial, Reference, and Immediate Solutions By 作者: Max Fomitchev ISBN-10 书号: 1138436399 ISBN-13 书号: 9781138436398 Edition 版本: 1 出版日期: 2017-07-27 Pages:...
---tutorial on hmm and applications------tutorial on hmm and applications------tutorial on hmm and applications------tutorial on hmm and applications------tutorial on hmm and applications------...
JBossIDE-eclipse 插件 Tutorial 1.4.1
6. **部署J2EE应用程序**:将构建好的J2EE应用程序部署到J2EE容器中,如Tomcat或JBoss。 7. **运行客户端**:启动客户端程序,测试与服务器端的交互是否正常。 8. **调试与优化**:根据运行过程中发现的问题,不断...
Tutorial 2: Creating a Framework and Window Tutorial 3: Initializing DirectX 11 Tutorial 4: Buffers, Shaders, and HLSL Tutorial 5: Texturing Tutorial 6: Diffuse Lighting Tutorial 7: 3D...
**教程的演变** 也反映了Java技术的进步,从最早的Java Programmer's Guide到现在的J2EE Tutorial,不仅内容更加丰富,而且涵盖了更广泛的J2EE技术栈,满足了开发者对复杂服务端应用程序开发的需求。 **翻译团队** ...
策略4:tutorial-checkpoint.ipynb
1. **环境配置**:如何安装J2EE SDK,配置开发环境如Eclipse或NetBeans。 2. **基础概念**:解释J2EE架构和组件的工作原理。 3. **开发指南**:详细讲解如何编写Servlet、JSP、EJB等组件。 4. **部署与运行**:介绍...
《J2EE 1.4教程》是一本深入解析Java企业版1.4技术的权威指南,主要针对Sun Microsystems的Java System Application Server平台版本8.2。这本书详细介绍了如何利用J2EE 1.4规范来开发分布式企业级应用程序,为开发者...
**EJB3 实例教程(JBoss+Eclipse+Ant)** Enterprise JavaBeans(EJB)是Java平台上用于构建可扩展、安全且事务处理能力强的企业级应用的技术。EJB3是EJB规范的一个重大改革,它引入了许多简化开发的特性,使得企业级...
"J2EE+Tutorial中文版.rar"是一个压缩文件,其中包含的"J2EE+Tutorial中文版.chm"是一个帮助文档,通常这种格式的文件包含了详细的技术指导和示例,方便用户查阅和学习。 **J2EE指南**是官方提供的参考文档,详细...