Investigate if it is possible to support the outbox with Spring and JTA

Description

When JTA is enabled with Spring, the shouldReleaseBeforeCompletion strategy is used by default. This does not allow the outbox to work properly, since the session is closed when we try to persist the outbox entities.

We already work around it to some extent; seeĀ org.hibernate.search.mapper.orm.session.impl.HibernateOrmSearchSessionHolder#get.

Environment

None

Activity

Show:
Fabio Massimo Ercoli
March 23, 2021, 9:03 AM
Edited

comment removed

Assignee

Unassigned

Reporter

Fabio Massimo Ercoli

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Major