I’m not sure exactly what the scr:components command is supposed to show, but everything looks consistent and fine based on my guesses about what it is doing. Did you have a specific question? Note that DS components are by default delayed, which means that if they expose a service they remain in SATISFIED state while the service is unused. The default for a deactivate method is “deactivate”. Whether or not there is such a method is determined when it’s time to call it (if present). I suspect you’ve annotated the activate method?
david jencks > On Feb 2, 2017, at 11:04 AM, Alex Soto <[email protected]> wrote: > > Hello, > > I am using Karaf 4.0.8. > > Some DS components in my application do not show as ACTIVE in the output from > the scr:components command, but show a blank state. > I do no see any difference between the other DS components that are shown as > ACTIVE, and the ones that show blank State. > > Digging a little I found the numeric state of these components is 4 > (SATISFIED) and that the Service the component exposes is active/exported > based on the service:list command. > > These components are declared using DS annotation @Component without any > additional attributes. > > The scr:info command shows this (fragment): > > Default State: enabled > Activation: delayed > Configuration Policy: optional > Activate Method: init > Deactivate Method: deactivate > Modified Method: - > > It is curious that the class does not have any deactivate method, not > annotation for it. > > What is going on? > > Best regards, > Alex soto > >
