glassfish
  1. glassfish
  2. GLASSFISH-15760

Allow persistence units to be packaged outside of the deployment unit

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: future release
    • Component/s: entity-persistence
    • Labels:
      None

      Description

      Currently persistence units can only be packaged as part of the deployment unit and only then they are available to EMF/EM reolvers during resolution of @PersistnceContext and @PersistenceUnit or their equivalent JNDI operations. It will be good to allow application developers to package persistence units in standalone libraries or OSGi bundles so as to encourage modularity as well as getting better performance by sharing second level cache.

      PFA a patch that adds necessary support in core for such a feature to be supported.

        Activity

        Hide
        Sanjeeb Sahoo added a comment -

        Deferring to a future release

        Show
        Sanjeeb Sahoo added a comment - Deferring to a future release
        Hide
        Mitesh Meswani added a comment -

        The patch looks good to me. Please go ahead and check in when trunk opens up. Assigning back to you for the checkin

        Show
        Mitesh Meswani added a comment - The patch looks good to me. Please go ahead and check in when trunk opens up. Assigning back to you for the checkin

          People

          • Assignee:
            Sanjeeb Sahoo
            Reporter:
            Sanjeeb Sahoo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: