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

          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