Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3214

Gogo shell bundle should not shut down the framework by default

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Gogo Shell
    • None

    Description

      Embedding the Gogo shell in Eclipse Virgo, we have found it necessary to set an appropriate property to prevent the Shell class from shutting down the whole OSGi framework. This behaviour is rather anti-social from the perspective of embedding Gogo. It means we need to set the relevant property, e.g. gosh.args=--nointeractive, for each and every way of launching the Virgo kernel (Startup script, from Eclipse, from integration test framework, from other test frameworks, etc.). Each time someone launches the Virgo kernel in a new way, they are likely to hit this gotcha as it is pretty surprising.

      The relevant code is in the Shell class:

      if (login && interactive && !opt.isSet("noshutdown"))
             

      {            System.out.println("gosh: stopping framework");            shutdown();        }

      This affects version 0.8.0 of Gogo.

      (It is, of course, conceivable we are using Gogo incorrectly, in which case this issue can be used to improve the relevant Gogo documentation.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            glyn.normington Glyn Normington
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: