About EntityManagerFactory

21-30 of 200Refresh
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
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 File] dialog box by
Manual
25

Obtaining a JPA Database Connection [2011-02-11]

content also require an EntityTransaction instance. Obtaining an EntityManagerFactory Obtaining ... of EntityManagerFactory that represents the relevant database and then we can use that factory instance ... to be able to generate an EntityManagerFactory. But when using ObjectDB you can either define a standard
Manual
25

Obtaining a JPA Database Connection

content also require an EntityTransaction instance. Obtaining an EntityManagerFactory Obtaining ... of EntityManagerFactory that represents the relevant database and then we can use that factory instance ... to be able to generate an EntityManagerFactory. But when using ObjectDB you can either define a standard
Manual
22

Shared (L2) Entity Cache

by the EntityManagerFactory and shared by all its EntityManager objects. the broader scope ... to the EntityManager's L1 cache and the EntityManagerFactory's L2 cache, which are managed ... is wider, since they exist per database and are shared by all the EntityManagerFactory and EntityManager
Manual
15

Database Replication and Clustering

, the master database can be accessed ordinarily as follows: EntityManagerFactory emf = Persistence ... different url is required in order to access the slave database: EntityManagerFactory emf ... can also be used: EntityManagerFactory emf = Persistence.createEntityManagerFactory( "objectdb
Tutorial
15

Step 4: Add a Servlet Class [2011-05-02]

ServletException, IOException { // Obtain a database connection: EntityManagerFactory emf = (EntityManagerFactory)getServletContext().getAttribute("emf ... ); } } GuestServlet performs the following operations on every http request: The EntityManagerFactory
Tutorial
15

Step 4: Add a Servlet Class

: EntityManagerFactory emf = (EntityManagerFactory)getServletContext ... : The EntityManagerFactory is retrieved from the application scope attribute, and then an EntityManager
Tutorial
15

Step 4: Add a Servlet Class [2011-05-02]

{ // Obtain a database connection: EntityManagerFactory emf = (EntityManagerFactory ... operations on every http request: The EntityManagerFactory is retrieved from the application scope attribute
Tutorial
15

Step 4: Add a Servlet Class

, IOException { // Obtain a database connection: EntityManagerFactory emf = (EntityManagerFactory)getServletContext().getAttribute("emf"); EntityManager em ... performs the following operations on every http request: The EntityManagerFactory is retrieved from