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]>:

>
> On Mon, Nov 23, 2015 at 9:53 AM, Guillaume Nodet <[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]>:
>>
>>> Is there a service in Karaf that completely restarts it?
>>>
>>>
>>
>

Reply via email to