[jboss-user] [EJB 3.0] - CMP EntityManager flush and Dirty READ/WRITE
fbadt
do-not-reply at jboss.com
Fri Nov 3 13:44:55 EST 2006
We have a Stateless Session Bean that REQUIRES a new transaction for each of its methods. The session bean passes off work to several delegate objects that are also given a reference to the inject Entity Manager.
These delegates do an em.flush to update the database (informix 9.4 with Datadirect type 4 drivers). This seems to result in rows showing up in the database that aren't committed and therefore would need to be read with a DirtyRead.
** 1 : how can the EM be setup to do dirty reads?
** 2 : the session bean methods are logical business methods and thus one transaction; however, it would be desireable to actually do sub transactions within them. How can this be done?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983064#3983064
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983064
More information about the jboss-user
mailing list