Currently, there is no validity check performed after loading the jbi
descriptor.
ServiceMix should ensure that all mandatory fields are filled and throw a
meaningful
exception when this is not the case.
Could you raise a JIRA issue for that ?

Cheers,
Guillaume Nodet

On 6/27/06, Terry Cox <[EMAIL PROTECTED]> wrote:

> The question here is should the test component installer jbi.xml
> files have the bootstrap-class-path element added as an empty
> element (<bootstrap-class-path/>) ?


The specification is not that helpful here:

"The JBI implementation MUST create an InstallationContext object,
initialized to provide the following data:
•Installation root, as a String containing the root's full directory
  path name.
•Bootstrap class name, as given in the installation descriptor.
•Bootstrap class path, as given in the installation descriptor." <snip>

Nothing is said about default paths, however, from the JBI schema,
bootstrap class path is not shown as optional, so should be provided for
the file to be valid.

"component =
element component {
attribute type { "service-engine" | "binding-component" },
attribute component-class-loader-delegation { "parent-first" |
"self-first" }?,
attribute bootstrap-class-loader-delegation { "parent-first" |
"self-first" }?,
identification,
element component-class-name { attribute description { text }?, text },
element component-class path { class path },
element bootstrap-class-name { text },
element bootstrap-class path { class path },
shared-library-list*,
element* -this:* { text }*
}"

Terry

Reply via email to