[ 
https://issues.apache.org/jira/browse/FELIX-3214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147632#comment-13147632
 ] 

Glyn Normington commented on FELIX-3214:
----------------------------------------

Related Virgo bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=350853
                
> 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


Reply via email to