Q&A

Q1:Which types of EJBs can use bean-managed transactions?
A1: Stateful and stateless session beans, as well as message-driven beans, are the types of EJBs that can use BMT. Entity beans can only use container-managed transaction demarcation.
Q2:What type of beans can use the SessionSynchronization interface? Why?
A2: Stateful session beans with CMT can only use the SessionSynchronization interface. EJBs with BMT cannot use the SessionSynchronization interface because they control commitment of the transaction.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.99.71