OpenJPA cache needs to be flushed when moving to jpa mode (or moving away from 
jpa mode)
----------------------------------------------------------------------------------------

                 Key: DAYTRADER-32
                 URL: http://issues.apache.org/jira/browse/DAYTRADER-32
             Project: DayTrader
          Issue Type: Bug
          Components: EJB Tier
    Affects Versions: 2.0
            Reporter: David Jencks
             Fix For: 2.0


OpenJPA has a pretty aggressive optimistic cache, and if you do some work in 
jpa mode, then do work in another mode, then go back to jpa mode, the openjpa 
cache is going to be out of date.

Apparently the necessary call is 

((OpenJPAEntityManagerFactory) emf).getStoreCache().evictAll();

Not sure how the app will get to this since the app only has an EM, not an EMF.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to