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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        3h 5m 1 Michael Dick 21/Sep/07 22:54
        Resolved Resolved Closed Closed
        2d 18h 4m 1 Michael Dick 24/Sep/07 16:58
        Michael Dick made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Michael Dick made changes -
        Field Original Value New Value
        Assignee Michael Dick [ mikedd ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Michael Dick created 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