<< Back to previous view

[GLASSFISH-15264] Optionally import instead of always importing dynamically in bootstrap module Created: 17/Dec/10  Updated: 18/Oct/12

Status: Open
Project: glassfish
Component/s: OSGi
Affects Version/s: 3.1_b33
Fix Version/s: future release

Type: Improvement Priority: Minor
Reporter: Sanjeeb Sahoo Assignee: Sanjeeb Sahoo
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: ee7ri_cleanup_deferred
Participants: Sanjeeb Sahoo and Tom Mueller

 Description   

Apply the attached patch after 3.1 release:

Index: core/bootstrap/osgi.bundle
===================================================================
— core/bootstrap/osgi.bundle (revision 43924)
+++ core/bootstrap/osgi.bundle (working copy)
@@ -40,16 +40,16 @@

Bundle-Activator: com.sun.enterprise.glassfish.bootstrap.GlassFishMainActivator

    1. Please note we don't everything that's required by every class in this module.
    2. We only import packages required by GlassFishMainActivator and its dependencies
      +# Please note we don't mandatorily import everything that's required by every class in this module.
      +# We only import mandatorily packages required by GlassFishMainActivator and its dependencies
  1. such as EmbeddedOSGiGlassFishRuntimeBuilder. The rest of the dependencies are
    1. pulled in dynamically via DynamicImport-Package. By doing this, we will be able
      +# pulled in via optional import or dynamically via DynamicImport-Package. By doing this, we will be able
  2. to install and start this bundle in a vanilla OSGi environment and then bootstrap
    1. rest of GlassFish bundles. Please contact Sahoo or Bhavani before you make any change in this
      +# rest of GlassFish bundles. Please contact Sahoo before you make any change in this
  3. bundle's manifest.
    Import-Package: \
  • org.glassfish.embeddable,
  • org.osgi.*
    + org.glassfish.embeddable, org.osgi.*, \
    + *; resolution:=optional

DynamicImport-Package: *



 Comments   
Comment by Tom Mueller [ 18/Oct/12 09:22 PM ]

Marking the fix version field as "future-release". This is based on an evaluation by John, Michael, and Tom WRT to the PRD for the Java EE 7 RI/SDK. This issue was deemed to not be a P1 for that release. If this is in error or there are other reasons why this RFE should be targeted for the Java EE 7 RI/SDK release, then change the fix version field back to an appropriate build.

Generated at Wed Apr 16 08:42:42 UTC 2014 using JIRA 4.0.2#472.