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

Connecting to database when an unused emf is closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.0, 0.9.6, 0.9.7, 1.0.0
    • 1.0.1, 1.1.0
    • kernel
    • 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.

      Attachments

        Activity

          People

            mikedd Michael Dick
            mikedd Michael Dick
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: