Persistence.createEntityManagerFactory is the bootstrap method intended to be used in Java SE environment.
In Java EE environment, emf can be obtained via injection or lookup, and since it's provided by the container, it can be associated with container transaction.
-cheng
[Message sent by forum member 'cf126330' (cf126330)]
http://forums.java.net/jive/thread.jspa?messageID=283649