Ejb 2v0 Matrix Page 8

ADVERTISEMENT

Method
Entity Beans
Session Beans
CMP
BMP
Stateful
Stateless
implementation
Can map to single/mult fields 10.8
N/A
of DD 10.8.1
primkey-field
Mult: PK class must be public with
public constructor/no args 10.8.2
Names must be subset of CMR 10.8.2
Can be unspecified 10.8.3
May not be visible as cmp-field 10.3.5
Must not reset PK after set 10.3.5
javax.ejb.SessionSynchronization interface
general
N/A
Session bean can optionally implement. Provides SB with txn synchronization notification
to, e.g. manage DB data cached within transactions 7.5.3
afterBegin/beforeCompletion/busn methods between executed with the same txn ctx 7.5.7
Stateless session bean must not implement this interface 6.8
Application Assembler can specify only Required, RequiresNew, Mandatory 16.4.1
Container-managed transactions
Bean-managed transactions
afterBegin()
N/A
Signals that a new txn has begun
N/A - must not implement this
Invoked before first business method
interface 7.5.3
within transaction 7.5.3
beforeCompletion()
N/A
Before commit; write out cached DB
N/A - must not implement this
updates 7.5.3
interface 7.5.3
Container may not call if transaction
marked for rollback 7.6
afterCompletion()
Signals current txn completed. Status of
N/A
N/A - must not implement this
txn: committed (true) or rolled back (false).
interface 7.5.3
Clean up conversational state if rollback
causes inconsistency 7.4.2
_______________________________________________________________________________________________________________________________________________________
Eileen Sauer, Volantec.biz
Page 8 of 11

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education