2 Replies Latest reply on Nov 6, 2006 9:43 AM by F B

    CMP EntityManager flush and Dirty READ/WRITE

    F B Newbie

      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?