felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glyn Normington (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-3214) Gogo shell bundle should not shut down the framework by default
Date Thu, 10 Nov 2011 12:00:52 GMT
Gogo shell bundle should not shut down the framework by default
---------------------------------------------------------------

                 Key: FELIX-3214
                 URL: https://issues.apache.org/jira/browse/FELIX-3214
             Project: Felix
          Issue Type: Improvement
          Components: Gogo Shell
            Reporter: Glyn Normington


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.)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message