Hi all,

It seems that if I don't explicitly specify 'immediate="true"' in my
component description, Felix DS assumes it to be delayed.  I then get
errors which say that my component is marked delayed but provides no
services.

>From the spec, section 112.2.2:

"A component is an immediate component if it is not a factory
component and either does not specify a service or specifies a service
and the immediate attribute of the component element set to true."

Is this requirement represented in code anywhere?  The only places I
can find dealing with whether or not a component is immediate are:

[XmlHandler.java]
// immediate attribute is optional
if(attrib.getProperty("immediate") != null) {
    
m_currentComponent.setImmediate(attrib.getProperty("immediate").equals("true"));
}

[ComponentMetadata.java]
if(m_immediate == false && m_service == null) {
    throw new ComponentException("Component '"+m_name+"' is specified
as being delayed but does not provide any service.");
}

Thanks

-Jeremy

Reply via email to