If entities are read from the cache, and if the ejb3 entity-bean is configured for optimistic-locking, the implementation of TransactionLocalEntityCache is used. The methods to find entities access an internal Map where the key is the Tx-Id. But the check is done by use the entity-PKey instead of the Tx-Id. The PKey must be used later if the transactional cache is selected.
PR send: https://github.com/jbossas/jboss-eap/pull/275
It has been already merged, thus moving this to ON_QA.
Verified in EAP 6.2.0.ER4.
Hi Wolf Can you please provide more information about this bug, for release notes purposes? I can see your description of the situation, but I'm not able to ascertain if this was a bug (that presented unexpected and unwanted behavior in the product) or if it is a request to optimize the product in some way. The Doc Text field above is a pre-formatted template that outlines the requirements for a complete release note. If you could provide the required information, it would be greatly appreciated.