OpenJPA
  1. OpenJPA
  2. OPENJPA-380

Connecting to database when an unused emf is closed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.0, 0.9.6, 0.9.7, 1.0.0
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: kernel
    • Labels:
      None

      Description

      When an EMF is closed it attempts to get a MetaDataRepositoryInstance. If no instance has been created (the EMF hasn't been used) it will create a new one - which entails opening a connection to the database.

      The MDR is only used to un-register itself as a class listener, so in this case it's rather pointless to create a new one.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Michael Dick
            Reporter:
            Michael Dick
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development