posted 14 years ago
Hi
I am planning to use , Application Managed EntityManager for my web based Application . I have made this class for getting access to EntityManagaerFactory .
As Creating EntityManagerFactory are expensive
Will it be a good place to write a ServletContextListener for my Web based Application to create a EntityManagerFactory inside the ContextInitilized and call the close method inside the ContextDestroyed .
Please help .
Save India From Corruption - Anna Hazare.