Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1824

OpenBooks should used container managed persistence when deployed in an application server.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.1
    • Fix Version/s: None
    • Component/s: samples
    • Labels:
      None
    • Environment:
      Windows Sever 2003

      Description

      OpenBooks is using an app managed persistence context and it isn't cleaning up properly. openbook.server.ServiceFactory.getService(...) creates an EMF, but it is never closed.
      OpenBooks application is using an app managed persistence context which is NOT cleaned up correctly when deployed in a JEE server.
      This results in the JEE container JPA Runtime does NOT calling DataCacheManager.close() on the DataCacheManager plugin.

      The container JPA Runtime does NOT call openjpa.DataCacheManager.close() when the application is stopped.
      This does not give a chance to any OpenJPA L2 cache provider to cleanup their resources and remove cache instances from static hashmaps. utlimately resulting in a memory leak.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kelapure Rohit Dilip Kelapure
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: