Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1296 WriteBehindCache Problems
  3. OPENJPA-1237

WriteBehind configuration exception not thrown when it should be

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.1.0
    • None
    • writebehind
    • None
    • Patch Available

    Description

      It seems like there should be exception(s) thrown when the new writebehind cache is not configured properly. For example, this is not a valid PU configuration since there is no DataCache specified.

      <persistence-unit name="WriteBehind_JSE_INVALID_PU1">
      <mapping-file>META-INF/orm.xml</mapping-file>
      <properties>
      <property name="openjpa.DataCache" value="false"/>
      <property name="openjpa.WriteBehindCache" value="true"/>
      <property name="openjpa.WriteBehindCallback" value="true(sleepTime=15000)"/>
      </properties>
      </persistence-unit>

      Yet there is no error or exception thrown when this statement is executed:

      emf = Persistence.createEntityManagerFactory("WriteBehind_JSE_INVALID_PU1");

      Attachments

        1. OPENJPA-1237-3.patch
          10 kB
          Tim McConnell

        Activity

          People

            Unassigned Unassigned
            mcconne Tim McConnell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: