The Spec 21.5 defines the following rule:
if transactional requests within a single transaction arrive from multiple clients (this could happen if there are intermediary objects or programs in the transaction call chain), all requests within the same transaction must be associated with the same security context
My question here is how can requests from multiple clients occur within the same transaction? A transaction is owned by a client. How can other clients get inside my transaction?
If the bean calls two methods (A and B) one after the other and the bean is being accessed by multiple clients, each client will call both methods. Are we saying that if client 1 calls method A, client 2 may then call method B and if the method attribute of B is Required, that method B occurs within the same transaction as method A?
Also, I am assuming that the bean can only be an entity bean, since this is the only been that allows concurrent access by multiple clients.
Is this understanding correct?