ObjectDB Database Search
1-3 of 3 resultsStep 3: Add a Context Listener Class the EntityManagerFactory: public void contextDestroyed (ServletContextEvent e) { EntityManagerFactory emf ... the EntityManagerFactory and the database - when the application stops ( contextDestroyed ). The next step | |
Replaying recorded requests... the contextDestroyed method of the ContextEventListener class. Is this wrong? ie: it gets calls ... about closing the PMF remains: Is it OK to close this only in the contextDestroyed method ... and not another copy. I think that closing the PMF in contextDestroyed of a servletContextListener | |
Database is erased after deploying a new web application version; contextDestroyed method should be invoked. On that example the listener is defined in a web.xml file (added ... of the exception. In contextInitialized and contextDestroyed if invoked automatically as |