I would like to get the EntityManagerFactory instance from Persistence interface in a jee environment.. but the specification link : https://docs.oracle.com/javaee/7/api/javax/persistence/Persistence.html
states the following
The Persistence class is available in a Java EE container environment as well; however, support for the Java SE bootstrapping APIs is not required in container environments.
Does this mean that we should not be using Persistence.createEntityManagerFactory not to be used in a java EE environment ?
Note: I have tested at WAS 8.5.5 and JBOSS EAP 7 and able to successfully get the EntityManagerFactory and perform DB persistence. I wanted to know if as per specification the container may stop the support for this API ?