Hi, my entityManager works on all versions (AS 7, EAP & WFLY), take a look and see if this can help you:
https://github.com/spolti/hrstatus/blob/master/src/main/resources/hrstatus-ctx-entity-manager.xml