I have migrated from WebSphere 8.5.5 with Hibernate 4.2 to JBoss EAP 7.1.5 + Hibernate 5.1.16. In WebSphere with Hibernate 4.2, I can separate Hibernate trasnaction from EJB one by using following coding. However, it does not work in JBoss EAP with Hibernate 5.1.16. In fact, I want commit data whatever associated EJB transaction is rollback/commit. Please help.
session = HibernateManager.instance().getSessionFactory().openSession();
tx = session.beginTransaction();