glassfish
  1. glassfish
  2. GLASSFISH-18889

Register GlassFish as an OSGi service only after GlassFish is started

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 4.0
    • Component/s: OSGi
    • Labels:
      None

      Description

      Currently we register GlassFish service in GlassFishRuntime.newGlassFish(). This causes problems for clients who try to use it as they can only call getStatus() method on the registered object until it is started. So, clients have to unnecessarily write polling logic. So, we should register when underlying service is started and unregistered when underlying service is stopped.

        Activity

        Hide
        Sanjeeb Sahoo added a comment -

        Log Message:
        ------------
        GLASSFISH-18888: "Already bootstrapped" exception while updating glassfish.jar
        GLASSFISH-18889: Register GlassFish as an OSGi service only after GlassFish is started
        GLASSFISH-18891: Use decorator pattern for various GFRImpls and GFimpls

        Revisions:
        ----------
        55086

        Modified Paths:
        ---------------
        trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/GlassFishMainActivator.java
        trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/OSGiGlassFishImpl.java
        trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/OSGiGlassFishRuntimeBuilder.java
        trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/OSGiGlassFishRuntime.java
        trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/EmbeddedOSGiGlassFishRuntime.java
        trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/EmbeddedOSGiGlassFishRuntimeBuilder.java
        trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/EmbeddedOSGiGlassFishImpl.java

        Show
        Sanjeeb Sahoo added a comment - Log Message: ------------ GLASSFISH-18888 : "Already bootstrapped" exception while updating glassfish.jar GLASSFISH-18889 : Register GlassFish as an OSGi service only after GlassFish is started GLASSFISH-18891 : Use decorator pattern for various GFRImpls and GFimpls Revisions: ---------- 55086 Modified Paths: --------------- trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/GlassFishMainActivator.java trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/OSGiGlassFishImpl.java trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/OSGiGlassFishRuntimeBuilder.java trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/OSGiGlassFishRuntime.java trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/EmbeddedOSGiGlassFishRuntime.java trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/EmbeddedOSGiGlassFishRuntimeBuilder.java trunk/main/nucleus/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/osgi/EmbeddedOSGiGlassFishImpl.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: