glassfish
  1. glassfish
  2. GLASSFISH-11611

ejb-jar shared by different applications

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: not determined
    • Component/s: classloader
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      11,611

      Description

      — Scenario:

      • an ejb-jar containning the code related to a JPA persistence layer.
      • two (or more) web-applications that depends on the above ejb-jar.

      — Today solution:

      None, people need to invent alternative solutions like to deploy the ejb-jar in
      the Glassfish lib folder or to re-pack the ejb-jar in each of the differente
      applications. The former solution open a security breach and the latter forces a
      complicated synchronization between the deployment artifacts every time the
      persistence layer is modified.

      People also reported problems using Hibernate with the ejb-jar shared through
      the Glassfish lib folder. Since a Stateless session bean is already loaded in
      one classloader, Glassfish throws exceptions if a second application tries to
      load the same EJB.

      — Proposed feature:

      Glassfish should support the deployment of ejb-jar as "sharable resource",
      including security management on what application can access the resource and
      managing the classloader issues related to such feature.

        Activity

        Hide
        rodgarcialima added a comment -
            • Issue 11611 has been confirmed by votes. ***
        Show
        rodgarcialima added a comment - Issue 11611 has been confirmed by votes. ***
        Hide
        vladperl added a comment -

        There are plenty cases when the deployment of ejb-jar as "sharable resource" make
        perfect sense.

        Show
        vladperl added a comment - There are plenty cases when the deployment of ejb-jar as "sharable resource" make perfect sense.
        Hide
        Tom Mueller added a comment -

        Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

        Show
        Tom Mueller added a comment - Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

          People

          • Assignee:
            Sanjeeb Sahoo
            Reporter:
            felipegaucho
          • Votes:
            10 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: