You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Oleg Cohen <ol...@assurebridge.com> on 2017/04/06 13:35:09 UTC

Auto-activation of bundle when dependency updates

Greetings,

I have a situation where I have two bundles: a provider bundle and a consumer bundle. The consumer bundle depends on the provider bundle. When I redeploy the provider it activates fine, but the consumer bundle goes into Resolved state and needs to be started manually. 

I would appreciate any pointers on how to triage and fix this.

Thank you!
Oleg


Re: Auto-activation of bundle when dependency updates

Posted by Oleg Cohen <ol...@assurebridge.com>.
Hi JB,

Thank you for the info. I discovered a circular dependency in the two bundles and that was causing the issue. So, this is all set now.

Again, thank you for info. I will make sure to use a ServiceTracker.

Best,
OIeg

> On Apr 6, 2017, at 12:10 PM, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
> 
> Hi Oleg,
> 
> Do you use a ServiceTracker in the consumer bundle ?
> 
> You should do this in order to be able to "react" when the provider service is available.
> 
> Regards
> JB
> 
> On 04/06/2017 03:35 PM, Oleg Cohen wrote:
>> Greetings,
>> 
>> I have a situation where I have two bundles: a provider bundle and a consumer bundle. The consumer bundle depends on the provider bundle. When I redeploy the provider it activates fine, but the consumer bundle goes into Resolved state and needs to be started manually.
>> 
>> I would appreciate any pointers on how to triage and fix this.
>> 
>> Thank you!
>> Oleg
>> 
> 
> -- 
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com


Re: Auto-activation of bundle when dependency updates

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Oleg,

Do you use a ServiceTracker in the consumer bundle ?

You should do this in order to be able to "react" when the provider service is 
available.

Regards
JB

On 04/06/2017 03:35 PM, Oleg Cohen wrote:
> Greetings,
>
> I have a situation where I have two bundles: a provider bundle and a consumer bundle. The consumer bundle depends on the provider bundle. When I redeploy the provider it activates fine, but the consumer bundle goes into Resolved state and needs to be started manually.
>
> I would appreciate any pointers on how to triage and fix this.
>
> Thank you!
> Oleg
>

-- 
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com