[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Reid - SCJP2 (April 2002)
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Reid - SCJP2 (April 2002)
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
A SLSB instance remains in existence for the duration of the transaction.
The term �stateless� signifies that an instance has no state for a specific client.
Because all instances of a stateless session bean are equivalent, the container can choose to delegate a client-invoked method to any available instance. This means, for example, that the Container may delegate the requests from the same client within the same transaction to different instances, and that the Container may interleave requests from multiple transactions to the same instance.
Reid - SCJP2 (April 2002)
quote:
--------------------------------------------------------------------------------
A SLSB instance remains in existence for the duration of the transaction.
--------------------------------------------------------------------------------
Huh? EJB 2.0 spec section 7.8 page 87
quote:
--------------------------------------------------------------------------------
The term �stateless� signifies that an instance has no state for a specific client.
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
A stateless bean instance basically doesn't even truly participate in a transaction so much as it controls how transactional state flows between the other components or resource adapters it interacts with.
If this weren't the case, the much-vaunted high scalability of SLSB would be impossible.
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Don't get me started about those stupid light bulbs. |