In my project we need to use read-ahead strategies. I have a situation where concurrent read access to the bean have to be allowed. Since for the read-ahead strategies to work the transaction attribute must be
Required/RequiresNewI have set it as Required.
SimpleReadWriteEJBLockas locking policy. For the beans I have specified the optimistic locking strategy with time-stamp column approach. The methods have a
Requiredtransaction attribute set.
TrasactionRolledBackExceptionis happening due to read time out. I cannot use read only entity beans since such beans are not part of transaction and read ahead strategies will have a negative performance impact.