Auto-activation of bundle when dependency updates

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Auto-activation of bundle when dependency updates

Oleg Cohen
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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Auto-activation of bundle when dependency updates

jbonofre
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é
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Auto-activation of bundle when dependency updates

Oleg Cohen
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é <[hidden email]> 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é
> [hidden email]
> http://blog.nanthrax.net
> Talend - http://www.talend.com

Loading...