0 Replies Latest reply on Nov 27, 2017 4:24 PM by Juan Pablo Feliciano Báez

    Hook method call before two phase persistence unit bootstrap

    Juan Pablo Feliciano Báez Newbie

      Hi everyone

      I belong to a software team that developed a Java EE 7 application that is using JPA 2.1 (hibernate 4.3.7 implementation) and deployed as a war archive on Wildfly 10.1.0. This application uses a H2 database, that is started in server mode through a setup method present in another java module, and we want to integrate this component into the war bundle. To have success with this integration, we need to invoke this setup method before the two-phase persistence unit bootstrap executed by the application server, because of the validation process. How can implement a hook to call this setup method that start the H2 database?