When my system gets "OutOfMemoryError: Java heap space", it commits the transaction (marked with org.apache.deltaspike.jpa.api.transaction.Transactional
annotation).
How to avoid this and make a rollback instead? "Regular" exceptions do cause the rollback.
My JPA implementation is EclipseLink 2.6.4 and container is Tomcat 8.5.33 running with Java 8.