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).