posted 17 years ago
in HFB p.671, question 12
Given a stateful session bean with container-managed transaction demarcation, from which methods can you access another bean ? (Choose all that apply).
A. setSessionContext()
B. ejbCreate()
C. afterBegin()
D. beforeCompletion()
E. afterCompletion()
The ans is B,C,D.
I don't know why "B" is correct, since we cannot apply transaction attribute on ejbCreate(), there should be "no meaningful tx context" why ejbCreate() can access another beans ?
Thanks ~