I have a user case that requires to access the same entity bean simultaneously from a message bean. What I notice is that some of the requests succeeded, while others throw a javax.ejb.ObjectNotFoundException on the finder-by-primary-key method. I thought if there is concurrent access to the same bean, one transaction will wait for another to finish.
Has anyone experienced a similar behavior? Or am I doing something wrong in terms of entity bean configuration?