JPA persistence contexts not synchronized with JTA transactions propagation in Fuse 7.8

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content