users@glassfish.java.net

Re: Why the entity did not be persistted to dababase

From: <glassfish_at_javadesktop.org>
Date: Tue, 01 Jul 2008 07:46:24 PDT

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