Uploaded image for project: 'DayTrader'
  1. DayTrader
  2. DAYTRADER-32

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0
    • 2.0
    • EJB Tier
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            djencks David Jencks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: