title: Do you need to createEntityManager() everytime you are accessing your db?
body: <p>If you are exercising CRUD procedures do you have to do this (with transaction type: RESOURCE_LOCAL not JTA)</p>
  
  <pre><code>@PersistenceUnit(unitName="mongo")
  EntityManagerFactory emf;
  
  EntityManager em;
  
  
  @Inject
  private SomeObj injectableObj;
  
  public void create()
  {
     em = emf.createEntityManager(); &lt;---- here
     SomeObj obj = new SomeObj();
     em.persist(obj);
  }
  
  public void read()
  {
     em = emf.createEntityManager();  &lt;---- here
     Query query = em.createQuery("Select s from SomeObj s");
  
  }
  
  public void update()
  {
     em = emf.createEntityManager();  &lt;---- here
     SomeObj s = em.find(SomeObj.class, injectableObj.getId());
     s.setSomeObj(injectableObj.getSomeObj());
  
  }
  
  public void delete()
  {
  
     em = emf.createEntityManager();  &lt;---- here
     SomeObj s = em.find(SomeObj.class, injectableObj.getId());
     em.remove(s);
  }
  </code></pre>
  
  <p>Question: Is there anyway to inject the EntityManager?</p>