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: |
|
Get Enterprise JavaBeans, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.