I wanted to test my application with Payara5 (I use Wildfly otherwise). Payara5 uses EclipseLink.
When the code reaches
AuditReaderFactory.get(EntityManager entityManager), instead of throwing an
AuditException, it throws a
The problem is :
entityManager.getDelegate() is always an instance of EntityManager with EclipseLink, so the endless loop.
Could you please protect the code against this ?