Session Beans
Stateless Session Beans

Figure B-6. Life-cycle state diagram of the stateless session bean

Figure B-7. Creation and removal of stateless session beans
Table B-2 summarizes the operations that are legal
for a stateless session bean. The allowed operations are the same for
both EJB 2.0 and 1.1, except for the
SessionContext methods
getEJBLocalHome() and
getEJBLocalObject(), which are specific to EJB
2.0.
Table B-2. Allowed operations for stateless session beans
|
Method |
Allowed operations | |
|---|---|---|
|
Container-managed transactions |
Bean-managed transactions | |
|
|
JNDI ENC contexts: Properties: |
JNDI ENC contexts: Properties: |
|
Business methods |
JNDI ENC contexts: Properties: Resource managers: EJB references: |
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access