SCBCD Tutorials
Certification
SCBCDSCBCD Study Notes : Chapter 4 : Session Bean Life Cycle
Table of Contents
SCBCD Study Notes : Chapter 4 : Session Bean Life Cycle
SCBCD Study Notes : Chapter 4 : Session Bean Life Cycle - Page 2
SCBCD Study Notes : Chapter 4 : Session Bean Life Cycle - Page 3SCBCD Study Notes : Chapter 4 : Session Bean Life Cycle - Page 2
Given a list of methods for a stateful or stateless session bean class, define which of the following operations can be performed from each of those methods: SessionContext interface methods, UserTransaction methods, Java Naming and Directory Interface API (JNDI API) access to java:comp/env environment naming context, resource manager access, and other enterprise bean access.
Stateful Session Bean
Table 4.1. Operations allowed in the methods of a stateful session bean.
|
Bean method
|
Bean method can perform the following operations
|
|
|
Container-managed transaction demarcation
|
Bean-managed transaction demarcation
|
|
|
constructor
|
-
|
-
|
|
|
methods: , .
JNDI access to
|
methods: , .
JNDI access to
|
|
|
methods: , , , , .
JNDI access to
Resource manager access
Enterprise bean access
|
methods: , , , , , .
methods
JNDI access to
Resource manager access
Enterprise bean access
|
|
Business method from component interface
|
methods: , , , , , , .
JNDI access to
Resource manager access
Enterprise bean access
|
methods: , , , , , .
methods
JNDI access to
Resource manager access
Enterprise bean access
|
|
|
methods: , , , , , , .
JNDI access to
Resource manager access
Enterprise bean access
|
N/A
(a bean with bean-managed transaction (BMT) demarcation cannot implement the interface)
|
|
|
methods: , , , , .
JNDI access to
|
|
Next Page: SCBCD Study Notes : Chapter 4 : Session Bean Life Cycle - Page 3
