Internal Website Search

1-6 of 6 resultsRefresh

Replaying recorded requests...

> I have been closing the PersistenceManagerFactory in the contextDestroyed method ... > Is it OK to close this only in the contextDestroyed method of a servletContextListener? contextDestroyed of a servletContextListener should be fine.

Database is erased after deploying a new web application version

is stopped by the Tomcat manager the contextDestroyed method ... class="code">contextInitialized and contextDestroyed if invoked

JBoss 7 startup fails

.NullPointerException at guest.GuestListener.contextDestroyed(GuestListener.java:20) [classes:] at org

Step 3: Add a Context Listener Class

contextDestroyed(ServletContextEvent e) { EntityManagerFactory emf = (EntityManagerFactory)e ... >EntityManagerFactory and the database - when the application stops (contextDestroyed

Step 3: Add a Context Listener Class

: public void contextDestroyed(ServletContextEvent e) { EntityManagerFactory emf ... >contextDestroyed). The next step is

Unexpected error when loading all entity instance

">contextDestroyed listener? During the last corruption did you have hot