Enterprise JavaBeans Contracts
A typical session object has the following characteristics:
• Executes on behalf of a single client.
• Can be transaction-aware.
• Updates shared data in an underlying database.
• Does not represent directly shared data in the database, although it may access and update such data.
• Is relatively short-lived.
• Is removed when the EJB Container crashes. The client has to re-establish a new session object to continue computation.
A typical EJB Container provides a scalable runtime environment to execute a large number of session objects concurrently.
Session beans are intended to be stateful. The EJB specification also defines a stateless Session bean as a special case of a Session Bean. There are minor differences in the API between stateful (normal) Session beans and stateless Session beans.
4.3.2 Entity objects
A typical entity object has the following characteristics:
• Provides an object view of data in the database.
• Allows shared access from multiple users.
• Can be long-lived (lives as long as the data in the database).
• The entity, its primary key, and its remote reference survive the crash of the EJB Container. If the state of an entity was being updated by a transaction at the time the container crashed, the entity’s state is automatically reset to the state of the last committed transaction. The crash is not fully transparent to the client—the client may receive an exception if it calls an entity in a container that has experienced a crash.
A typical EJB Container and Server provide a scalable runtime environment for a large number of concurrently active entity objects.
4.3.3 Message-driven objects
A typical message-driven object has the following characteristics:
• Executes upon receipt of a single client message.
• Is asynchronously invoked.
• Can be transaction-aware.
• May update shared data in an underlying database.
• Does not represent directly shared data in the database, although it may access and update such data.
• Is relatively short-lived.
• Is stateless.
• Is removed when the EJB Container crashes. The container has to re-establish a new message-driven object to continue computation.
A typical EJB Container provides a scalable runtime environment to execute a large number of message-driven objects concurrently.
Location of EJB Client Stubs
Enterprise Java Beans (TM) Specification ("Specification")
Version: 2.0
Status: Final Release
Release: August 22, 2001
Copyright 2001 Sun Microsystems, Inc.
901 San Antonio Road, Palo Alto, California 94303, U.S.A.
All rights reserved.
Download Spec from java.sun.com : http://java.sun.com/products/ejb/docs.html#specs
'B1:기초 Basement' 카테고리의 다른 글
Ruby (0) | 2007.01.05 |
---|---|
Lifecycle of 4 Beans (0) | 2007.01.04 |
Lifecycle of Session Object and Entity Object (0) | 2007.01.04 |
SCBCD Exam Objectives (0) | 2007.01.02 |
프로그래밍 언어 Ruby 관련 링크 (0) | 2006.12.25 |