Re: [osgi-dev] SATISFIED versus ACTIVE

2016-10-18 Thread BJ Hargrave
If the activate method of a component instance has run, then the component instance is ACTIVE. A non-immediate SATISFIED component instance will generally not have been instantiated or activated given the lazy nature of DS for non-immediate components.
 
Also, since a component can have multiple instances (factory configurations), you could see some instances as ACTIVE while others are SATISFIED since the service of the component instance may be unused.
 
--BJ HargraveSenior Technical Staff Member, IBM // office: +1 386 848 1781OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788hargr...@us.ibm.com
 
 
- Original message -From: Benson Margulies Sent by: osgi-dev-boun...@mail.osgi.orgTo: OSGi Developer Mail List Cc:Subject: [osgi-dev] SATISFIED versus ACTIVEDate: Tue, Oct 18, 2016 8:26 AM 
I've got a component that I know has been activated: I've seen logmessages from its activate message. Yet the DTO says state isSATISFIED, not ACTIVE.___OSGi Developer Mail Listosgi-dev@mail.osgi.orghttps://mail.osgi.org/mailman/listinfo/osgi-dev 
 

___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] SATISFIED versus ACTIVE

2016-10-18 Thread Raymond Auge
This is described in section 112.5.2 of the DS specification.

Your component:
- is enabled
- your component either requires configuration and has it, or doesn't
require configuration
- has all it's references satisfied
- is NOT immediate
- no bundles have requested it

Basically it's lazy and lonely. (I was gonna a a quip but I won't!)

HTH
- Ray

On Tue, Oct 18, 2016 at 8:26 AM, Benson Margulies 
wrote:

> I've got a component that I know has been activated: I've seen log
> messages from its activate message. Yet the DTO says state is
> SATISFIED, not ACTIVE.
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>



-- 
*Raymond Augé* 
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* 
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance  (@OSGiAlliance)
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] SATISFIED versus ACTIVE

2016-10-18 Thread Benson Margulies
I've got a component that I know has been activated: I've seen log
messages from its activate message. Yet the DTO says state is
SATISFIED, not ACTIVE.
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev