[jboss-user] [EJB 3.0] - EntityManager persist vs. find and cache put

jlage do-not-reply at jboss.com
Fri Mar 2 18:23:52 EST 2007


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024780#4024780

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024780



More information about the jboss-user mailing list