[jboss-user] [JBoss Seam] - Flushing changes to objects quickly

SmokingAPipe do-not-reply at jboss.com
Thu Dec 7 00:22:23 EST 2006


Here's the problem: I have a form that updates a bunch of objects that are in a Collection.  The model objects get updated correctly, but they aren't instantly saved to the database.  I can put in entityManager.flush() which should save them, but here's the question / problem: the objects were outjected by another SFSB with an extended persistence context.  If I do the entityManager.flush() in some other SFSB (not the one that originally outjected the objects), will I be using a different EntityManager?  I put in a entityManager.flush() statement and it doesn't seem to do anything.

Any ideas on this?  It's confusing to me.


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

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



More information about the jboss-user mailing list