OpenJPA
  1. OpenJPA
  2. OPENJPA-1749

Throw exception if using datacache / synchronize mappings and specifying datasource name at EM creation.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1, 2.1.0
    • Component/s: None
    • Labels:
      None

      Description

      Some configuration options are misleading and dangerous if the datasource JNDI location is provided at EntityManager creation time. For example the L2 cache can not be reliably used if each EntityManager may be communicating with a different schema / database instance.

      In order to prevent confusion down the road we should throw an exception when these conditions are detected.

        Issue Links

          Activity

          Michael Dick created issue -
          Michael Dick made changes -
          Field Original Value New Value
          Link This issue is related to OPENJPA-1742 [ OPENJPA-1742 ]
          Michael Dick made changes -
          Link This issue relates to OPENJPA-1551 [ OPENJPA-1551 ]
          Michael Dick made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          7h 49m 1 Michael Dick 28/Jul/10 23:08

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development