0 Replies Latest reply on Mar 2, 2007 6:23 PM by Jeffrey Lage

    EntityManager persist vs. find and cache put

    Jeffrey Lage Newbie

      it seems that EntityManager.persist( o ) does not put object o into EJB3EntityTreeCache. at least it does not appear if i go to the jmx console and invoke EJB3EntityTreeCache.printDetails(). however, after the first call to EntityManager.find() that returns the newly persisted objec o, that object does apper when i invoke EJB3EntityTreeCache.printDetails(). some my questions are:

      is that the expected behavior?
      does that imply that i make a trip to the db that i don't really need?

      thanks.