We're updating the issue view to help you get more done. 

ISE should be thrown when EM is colsed and joinTransaction is called, even with RESOURCE-LOCAL TX

Description

according to JPA spec

The EntityManager.close method closes an entity manager to release its persistence context and
other resources. After calling close, the application must not invoke any further methods on the
EntityManager instance except for getTransaction and isOpen, or the IllegalState-
Exception will be thrown.

hibernate now only throws ISE when the TX is JTA and EM is closed

Environment

None

Status

Assignee

Strong Liu

Reporter

Strong Liu

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major