Calling the feature service to trigger a resolution should have this effect.

This can be done from the console by calling "feature:install xxx" where xx
is a known installed feature, or you can do it programmatically from your
bundle by getting a reference to the FeaturesService and calling it.
You can also use the scheduler feature to schedule such a command at
regular times.

2016-08-22 9:42 GMT+02:00 Hari Madhavan <[email protected]>:

> Hi Karaf Users,
>
> Is there a way of  checking from karaf whether a feature has been updated
> on a Nexus server and if it is refreshed, have the refreshed bundles
> brought down and deployed on karaf ?
>
> Regards
> Hari
>
> On Fri, Aug 19, 2016 at 7:37 PM, Hari Madhavan <
> [email protected]> wrote:
>
>> Hi JB,
>>
>> Yes I would like a refresh of the feature ( including the bundles ) and
>> not just of the descriptor . I am sorry - I did not come across a "hook" in
>> karaf . How do I use it ?
>>
>> Regards
>> Hari
>>
>> On Fri, Aug 19, 2016 at 7:26 PM, Jean-Baptiste Onofré <[email protected]>
>> wrote:
>>
>>> Hi Hari,
>>>
>>> you mean a refresh of the feature itself, or a refresh of the features
>>> descriptor (XML) ?
>>>
>>> You can always a hook to trigger the refresh.
>>>
>>> Regards
>>> JB
>>>
>>>
>>> On 08/19/2016 03:54 PM, Hari Madhavan wrote:
>>>
>>>> Hi ,
>>>>
>>>> We have an application that runs as a karaf service and is packaged as a
>>>> feature with a set of bundles. How can I have a feature refresh
>>>> attempted every time karaf starts , and if there are changes to bundles
>>>> or configurations have the corresponding resources updated on karaf?
>>>>
>>>> Regards
>>>> Hari
>>>>
>>>> --
>>>> Hari
>>>> 9845147731
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> [email protected]
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>>
>>
>> --
>> Hari Madhavan,
>> Director - ERP Practice,
>> Promantia Global Consulting LLP <http://www.promantia.in>
>> Ph: +91 9845147731
>> *Openbravo Gold Partner*
>>
>
>
>
> --
> Hari Madhavan,
> Director - ERP Practice,
> Promantia Global Consulting LLP <http://www.promantia.in>
> Ph: +91 9845147731
> *Openbravo Gold Partner*
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: [email protected]
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/

Reply via email to