Thanks.

On Mon, Nov 23, 2015 at 10:25 AM, Jean-Baptiste Onofré <[email protected]>
wrote:

> The code to restart Karaf (and so the framework) is "wrapped" in the
> SystemService (in the reboot() method).
>
> On 11/23/2015 04:19 PM, Guillaume Nodet wrote:
>
>> So you don't need to restart the JVM ?
>> I was assuming the "completely" means restarting the JVM.
>> Else, JB pointed you to the right direction.  At the end, it basically
>> comes down to:
>>
>> System.setProperty("karaf.restart","true");
>>
>> bundleContext.getBundle(0).stop();
>>
>>
>> 2015-11-23 15:56 GMT+01:00 Benson Margulies <[email protected]
>> <mailto:[email protected]>>:
>>
>>
>>     On Mon, Nov 23, 2015 at 9:53 AM, Guillaume Nodet <[email protected]
>>     <mailto:[email protected]>> wrote:
>>
>>         I've committed a patch from Hiram that does that in Karaf 4.
>>         Thought it's not released yet
>>
>> https://github.com/apache/karaf/commit/a47c36b7f00c6b593b7a9b5a018deda4aeca1cc0
>>
>>
>>     I'm not trying to change the lib directory, I just was hoping for
>>     shutting down and starting up the framework provoked by a call to
>>     some OSGi registered service.
>>
>>
>>         2015-11-23 15:52 GMT+01:00 Benson Margulies
>>         <[email protected] <mailto:[email protected]>>:
>>
>>             Is there a service in Karaf that completely restarts it?
>>
>>
>>
>>
>>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Reply via email to