http://jonas.ow2.org/JONAS_5_1_1/doc/doc-en/html/ejb2_programmer_guide.html
1. Developing EJB 2.1 Session Beans
1.1. EJB 2.1 Session Beans Description
1.1.1. Introduction
1.1.2. The Home Interface
1.1.3. The Component Interface
1.1.4. The Enterprise Bean Class
1.2. Tuning EJB 2.1 session beans
2. Developing Entity Beans
2.1. EJB 2.1 Entity Beans Description
2.1.1. Introduction
2.1.2. The Home Interface
2.1.3. The Component Interface
2.1.4. The Primary Key Class
2.1.5. The Enterprise Bean Class
2.2. Writing Database Access Methods for Bean Managed Persistence
2.2.1. Example
2.3. Configuring Database Access for Container Managed Persistence
2.3.1. CMP 1.x specifics
2.3.2. CMP 2.x specifics
2.4. Tuning EJB 2.1 entity beans
2.4.1. lock-policy
2.4.2. shared
2.4.3. prefetch
2.4.4. max-cache-size / hard-limit / max-wait-time
2.4.5. min-pool-size
2.4.6. is-modified-method-name
2.4.7. passivation-timeout
2.4.8. read-timeout
2.4.9. inactivity-timeout
2.5. Using the CMP 2 Persistence in Entity Beans
2.5.1. Standard CMP2.0 Aspects
2.5.2. JOnAS EJBQL extension
2.5.3. JOnAS Database mappers
2.5.4. JOnAS Database Mapping (Specific Deployment Descriptor)
2.6. Configuring JDBC DataSources
2.6.1. Configuring DataSources
3. Developing Message Driven Beans
3.1. EJB Programmer's Guide: Message-drivenBeans
3.1.1. Description of a Message-driven Bean
3.1.2. Developing a Message-drivenBean
3.1.3. Administration aspects
3.1.4. Running a Message-driven Bean
3.1.5. Transactional aspects
3.1.6. Example
3.2. Tuning Message-driven Bean Pool
3.2.1. min-pool-size
3.2.2. max-cache-size
3.2.3. example
4. General Issues Around EJB 2.1
4.1. EJB2 Transactional Behaviour
4.1.1. Declarative Transaction Management
4.1.2. Bean-managed Transaction
4.1.3. Distributed Transaction Management
4.2. EJB2 Environment
4.2.1. Introduction
4.2.2. Environment Entries
4.2.3. Resource References
4.2.4. Resource Environment References
4.2.5. EJB References
4.3. Security Management
4.3.1. Introduction
4.3.2. Declarative Security Management
4.3.3. Programmatic Security Management
4.4. Defining the EJB2 Deployment Descriptor
4.4.1. Principles
4.4.2. Example of Session Descriptors
4.4.3. Example of Container-managed Persistence Entity Descriptors (CMP 2.x)
4.5. EJB2 Packaging
4.5.1. Principles
4.5.2. Example
4.6. ejb2 Service configuration
A. Appendix
A.1. xml Tips
This guide explains how to program with EJB 2.1. To use the new EJB 3.0 beans, you should refer to EJB 3.0 Programmer's Guide
Developing EJB 2.1 Session Beans
1.1. EJB 2.1 Session Beans Description
1.1.1. Introduction
1.1.2. The Home Interface
1.1.3. The Component Interface
1.1.4. The Enterprise Bean Class
1.2. Tuning EJB 2.1 session beans
1.1. EJB 2.1 Session Beans Description
1.1.1. Introduction
A Session Bean is composed of the following parts, which are developed by the Enterprise Bean Provider:
The Component Interface is the client view of the bean. It contains all the "business methods" of the bean.
The Home Interface contains all the methods for the bean life cycle (creation, suppression) used by the client application.
The bean implementation class implements the business methods and all the methods (described in the EJB specification), allowing the bean to be managed in the container.
The deployment descriptor contains the bean properties that can be edited at assembly or deployment time.
Note that, according to the EJB 2.1 specification, the couple "Component Interface and Home Interface" may be either local or remote. Local Interfaces (Home and Component) are to be used by a client running in the same JVM as the EJB component. Create and finder methods of a local or remote home interface return local or remote component interfaces respectively. An EJB component can have both remote and local interfaces, even if typically only one type of interface is provided.
The description of these elements is provided in the following sections.
A session bean object is a short-lived object that executes on behalf of a single client.There are stateless and stateful session beans. Stateless beans do not maintain state across method calls. Any instance of stateless beans can be used by any client at any time. Stateful session beans maintain state within and between transactions. Each stateful session bean object is associated with a specific client. A stateful session bean with container-managed transaction demarcation can optionally implement the SessionSynchronization interface. In this case, the bean objects will be informed of transaction boundaries. A rollback could result in a session bean object's state being inconsistent; in this case, implementing the SessionSynchronization interface may enable the bean object to update its state according to the transaction completion status.
...............
Developing Entity Beans
2.1. EJB 2.1 Entity Beans Description
2.1.1. Introduction
2.1.2. The Home Interface
2.1.3. The Component Interface
2.1.4. The Primary Key Class
2.1.5. The Enterprise Bean Class
2.2. Writing Database Access Methods for Bean Managed Persistence
2.2.1. Example
2.3. Configuring Database Access for Container Managed Persistence
2.3.1. CMP 1.x specifics
2.3.2. CMP 2.x specifics
2.4. Tuning EJB 2.1 entity beans
2.4.1. lock-policy
2.4.2. shared
2.4.3. prefetch
2.4.4. max-cache-size / hard-limit / max-wait-time
2.4.5. min-pool-size
2.4.6. is-modified-method-name
2.4.7. passivation-timeout
2.4.8. read-timeout
2.4.9. inactivity-timeout
2.5. Using the CMP 2 Persistence in Entity Beans
2.5.1. Standard CMP2.0 Aspects
2.5.2. JOnAS EJBQL extension
2.5.3. JOnAS Database mappers
2.5.4. JOnAS Database Mapping (Specific Deployment Descriptor)
2.6. Configuring JDBC DataSources
2.6.1. Configuring DataSources
分享到:
相关推荐
**企业级JavaBeans(EJB)2.1详解** 企业级JavaBeans(EJB)是Java平台上用于构建可部署在企业级服务器上的组件模型。EJB 2.1是其第二个主要版本,发布于2003年,是Java EE(Java Platform, Enterprise Edition)的...
在 ejb2.rar_bmp ejb2_ejb2_ejb2 cmp b 这个压缩包中,我们看到的是针对EJB 2.1规范的一个登录实例,它涉及到了两种主要的实体Bean管理策略:CMP(Container-Managed Persistence,容器管理持久化)和 BMP(Bean-...
EJB2.1/EJ2EE 规范教程,个人觉得很不错的
《企业JavaBeans (EJB) 2.1规格标准》:构建分布式商业应用的基石 在探讨企业级软件开发的领域内,企业JavaBeans(EJB)架构自诞生以来便成为了构建可扩展、事务处理及多用户安全的分布式业务应用程序的关键技术之...
- **Local接口**(EJB 2.1新增):仅在服务器内部使用的接口,无需远程通信,提高了性能。 - **生命周期方法**:包括 ejbCreate(), ejbActivate(), ejbPassivate(), ejbRemove() 等,用于管理Bean的生命周期。 3....
Struts、EJB(Enterprise JavaBeans)和WebLogic是Java企业级开发中的三大核心组件,它们在构建可扩展且复杂的Web应用程序中起着至关重要的作用。这个名为"struts_ejb.rar"的压缩包文件,显然是为了教授初学者如何将...
这是一个基于EJB(Enterprise JavaBeans)技术的项目,利用了JBuilder作为开发工具,JBoss应用服务器进行部署,以及MySQL数据库存储数据。这个项目名为"ejb_jboss_estoreW",推测是一个电子商务(e-store)平台的...
【Eclipse xDoclet 开发EJB2.1】是一个关于使用Eclipse集成开发环境(IDE)配合xDoclet工具来开发Enterprise JavaBeans (EJB) 2.1版本的教程。EJB是一种Java技术,用于构建可部署在Java应用服务器上的组件,主要用于...
这个“ejb_06.rar”压缩包包含的是一个ejb的示例项目,名为“ejb samp”,特别适合ejb初学者学习。下面将详细介绍EJB的相关知识点以及这个样本项目可能涉及的内容。 1. **EJB概述**: EJB是一种面向服务的组件模型...
**EJB(Enterprise JavaBeans)**是Java EE(Enterprise Edition)平台的核心组成部分,它为构建分布式企业级应用程序提供了规范和框架。EJB提供了一种组件模型,允许开发人员创建可部署在服务器上的业务逻辑组件,...
**EJB 3.0 开发详解:异常处理与常见问题解决方案** Enterprise JavaBeans (EJB) 是Java EE平台的核心组件之一,它提供了一种规范化的服务器端组件模型,用于构建可扩展、分布式的企业级应用。EJB 3.0是EJB规范的一...
在EJB 2.1中实现Web Service是一个关键的技术进步,这一版本的更新主要针对了对Web Service的支持,这是由于企业级JavaBean(EJB)需要适应Web Service的需求,同时也应对了微软.NET框架的挑战。EJB 2.1通过引入一...
EJB(Enterprise JavaBeans)是Java平台上用于构建企业级应用的一种组件模型,它定义了用于开发分布式、事务处理、安全性和可伸缩性应用程序的规范。EJB 3.1是该规范的一个重要版本,引入了许多改进以提高开发者的...
EJB(Enterprise JavaBeans)是Java EE平台的核心组件之一,主要负责实现企业级应用的业务逻辑。EJB 3.0是EJB规范的一个重要版本,它极大地简化了EJB的开发模型,使得开发者能够更加专注于业务逻辑,而无需过多地...
**JSF(JavaServer Faces)与EJB3(Enterprise JavaBeans 3)集成开发** JSF(JavaServer Faces)是Java平台上的一个用于构建用户界面的MVC(Model-View-Controller)框架,它简化了在Web应用中创建用户交互界面的...
EJB(Enterprise JavaBeans)是Java EE平台的一部分,主要用于构建可部署在服务器端的企业级应用程序。EJB提供了组件模型,让开发者可以创建可重用、安全且可扩展的业务逻辑。在“EJB_ejb_plannedvhz_”这个主题中,...
《经典Java EE企业应用实战--基于WebLogic/JBoss的JSF+EJB 3+JPA整合开发》由李刚著作,是Java EE领域一本专业且实用的书籍。本书可作为《轻量级java ee企业应用实战》的姊妹篇,介绍了Java EE规范的三大主要规范JSF...
【标题】"EJB_ejb_plannedvhz_源码.zip" 暗示着这是一个包含Enterprise JavaBeans(EJB)应用的源代码压缩包。EJB是Java平台企业版(Java EE)的一部分,用于构建可扩展、安全且事务性的服务器端应用程序。此源码...
**EJB 3.0 开发指南之定时服务** 企业级JavaBeans(Enterprise JavaBeans,简称EJB)是Java平台上用于构建分布式企业级应用程序的重要组件。EJB 3.0作为其一个重要的版本,带来了许多改进,使得开发更加简化且高效...