Hello
I am having a web applicaion using JPA for CRUD Operations .
I have defined a Template class for creating and closing EntityManager as shown below :
I have a
servlet and want to access EntityManager in it .
So for this i am calling createEntityManager() of Controller .
Please tell me is this the right way to do it .