About EntityManagerFactory

11-20 of 200Refresh
Tutorial
66

Step 3: Add a Context Listener Class

a JPA's EntityManagerFactory instance with a global application scope. We have to register ... if not exists yet) when the web application starts, by instantiating an EntityManagerFactory ... closing that EntityManagerFactory. To register a ServletContextListener: Open the [New Listener] dialog
Tutorial
66

Step 3: Add a Context Listener Class

a JPA's EntityManagerFactory instance with a global application scope. We have to register ... if not existing yet) when the web application starts, by instantiating an EntityManagerFactory ... closing the EntityManagerFactory. To register a ServletContextListener: Open the [New File] dialog box
Manual
37

Database Connection using JPA

of an EntityManagerFactory instance is to support instantiation of EntityManager instances. An EntityManagerFactory is constructed for a specific database, and by managing resources efficiently (e.g ... for that database. The instantiation of the EntityManagerFactory itself might be less efficient
Forum
37

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

; public static void main(String[] args) {   EntityManagerFactory emf = null;   EntityManager em = null ... ) {   EntityManagerFactory emf = null;   EntityManager em = null;   try {    emf = Persistence ... . I see the following stack trace. Notice EntityManagerFactory switched over to the slave
Forum
36

High memory consumption even after close() of EntityManagerFactory

could not be released. Not even after the EntityManagerFactory closed. We created a small test ... ) on EntityManagerFactory close.   The optimization of memory usage was very effective. The test ... released (if active) on EntityManagerFactory close. However, there are other structures
Forum
36

Objectdb EntityManagerFactory problem

. You can close each EntityManagerFactory by using the close method. By the way, creating an EntityManagerFactory is relatively slow. It is usually better to use one EntityManagerFactory
Forum
36

Closed EntityManagerFactory after upgrading glassfish 3.1.1 to 3.1.2

from a closed EntityManagerFactory at com.objectdb.o._PersistenceException.b(_PersistenceException ... a connection from a closed EntityManagerFactory at com.objectdb.o.MSG.d(MSG.java:61) at com
Manual
35

Chapter 3 - Using JPA

Explains how to store, retrieve, update and delete entity objects using JPA.
Tutorial
30

Step 3: Add a Context Listener Class [2011-02-11]

a JPA's EntityManagerFactory instance with a global application scope. We have to register ... if not exists yet) when the web application starts, by instantiating an EntityManagerFactory ... closing that EntityManagerFactory. To register a ServletContextListener: Open the [New Listener] dialog
Tutorial
30

Step 3: Add a Context Listener Class [2019-01-27]

a JPA's EntityManagerFactory instance with a global application scope. We have to register ... if not exists yet) when the web application starts, by instantiating an EntityManagerFactory ... closing that EntityManagerFactory. To register a ServletContextListener: Open the [New Listener] dialog