Do you need to createEntityManager() everytime you are accessing your db?
===

If you are exercising CRUD procedures do you have to do this

    @PersistenceUnit(unitName="mongo")
    EntityManagerFactory emf;
    
    EntityManager em;
    
    
    @Inject
    private SomeObj injectableObj;
    
    public void create()
    {
       em = emf.createEntityManager(); <---- here
       SomeObj obj = new SomeObj();
       em.persist(obj);
    }
    
    public void read()
    {
       em = emf.createEntityManager();  <---- here
       Query query = em.createQuery("Select s from SomeObj s");
       
    }
    
    public void update()
    {
       em = emf.createEntityManager();  <---- here
       SomeObj s = em.find(SomeObj.class, injectableObj.getId());
       s.setSomeObj(injectableObj.getSomeObj());
    
    }
    
    public void delete()
    {
    
       em = emf.createEntityManager();  <---- here
       SomeObj s = em.find(SomeObj.class, injectableObj.getId());
       em.remove(s);
    }


Question: Is there anyway to inject the EntityManager?