Thanks. We really want to avoid putting any calls to the EntityManager inside our domain objects. For the time being, we've split up the deletes and adds into two different methods, and called them from the service bean. deleteThem(), flush(), addThem(). Ugly, but it works.
After thinking about it, we could enable immediate flushing for this service method only. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909579#3909579 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909579 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user