User Tools

Site Tools


component_instance_race_condition

Component Instance Race Condition

If a component is created via a component factory it is immediately returned after creation. But it might not be totally configured/registered.

If this component instance is also a managed service then the component is registered as a managed service on a different thread and thus might lead to a race condition because the receiver of the component might immediately use this possibly unmanaged component.

This has been observed on Apache Felix (bundled with Glassfish 3.1.1).

component_instance_race_condition.txt · Last modified: 2014/01/23 07:18 by mihael