JPA persistence contexts not synchronized with JTA transactions propagation in Fuse 7.8
Issue
When there is a transaction chain where at some point a new transaction is spawned, for example by using the javax.transaction.Transactional(TxType.REQUIRES_NEW) annotation, the JPA operations performed in the context of the new JTA transaction, are still executed using the firstly created JPA persistence context associated to the old suspended JTA transaction.
Environment
- Fuse 7.8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.