> On 4 Aug 2016, at 20:47, [email protected] wrote:
> 
> On 2016-08-04T12:37:02 -0700
> David Jencks <[email protected]> wrote:
> 
>> BundleActivator behavior and DS component behavior are completely unrelated.
> 
> Hm, OK. I erroneously assumed that DS components would be built upon
> the activator behaviour. Clearly not!

Components have activate/deactivate methods but they are not BundleActivators 
because components are not bundles.

However, components are shipped *inside* bundles, and the containing bundle 
must be active in order for any of the components to be active. This can lead 
to an apparent connection, where the components get activated as a result of 
the bundle being activated.

Sorry that I missed this in your original mail, and well spotted David.


> 
>> I strongly suspect that you haven’t installed anything to record the logging 
>> or display it to you?  IIRC pax-logging is a popular way to hook osgi 
>> logging up to slf4j and make it easy to configure where it goes.
> 
> You suspect correctly!
> 
> START LEVEL 1
>   ID|State      |Level|Name
>    0|Active     |    0|System Bundle (5.4.0)|5.4.0
>    1|Active     |    1|Apache Felix Bundle Repository (2.0.6)|2.0.6
>    2|Active     |    1|Apache Felix Configuration Admin Service 
> (1.8.10)|1.8.10
>    3|Active     |    1|Apache Felix Gogo Command (0.16.0)|0.16.0
>    4|Active     |    1|Apache Felix Gogo Runtime (0.16.2)|0.16.2
>    5|Active     |    1|Apache Felix Gogo Shell (0.10.0)|0.10.0
>    6|Active     |    1|Apache Felix Log Service (1.0.1)|1.0.1
>    7|Active     |    1|Apache Felix Metatype Service (1.1.2)|1.1.2
>    8|Active     |    1|Apache Felix Declarative Services (2.0.4)|2.0.4
>   12|Active     |    1|application (0.1.0)|0.1.0
> 
> I'm currently only experimenting, so unless I've seen documentation 
> suggesting something, I don't have it installed.
> 
> I'll take a look at pax-logging. I use slf4j everywhere else, so 
> it seems like the right thing to do.
> 
> M


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to