You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Luciano Resende <lu...@gmail.com> on 2010/07/31 05:53:08 UTC
Policy and the location of definitions.xml
I noticed that DefinitionsDocumentProcessor register itself to process
"/META-INF/definitions.xml" and some iTests fails if we move the
definitions.xml outside the META-INF folder (e.g itest-policies).
Does the SCA Policy spec says we can only have definitions.xml inside
META-INF folder ? Could someone point me where that is mentioned ?
Thanks
--
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/
Re: Policy and the location of definitions.xml
Posted by Luciano Resende <lu...@gmail.com>.
On Fri, Jul 30, 2010 at 10:24 PM, Raymond Feng <en...@gmail.com> wrote:
> This is defined in the SCA assembly spec:
>
> 3081 8 SCA Definitions
> 3082 There are a variety of SCA artifacts which are generally useful and which are not specific to a particular
> 3083 composite or a particular component. These shared artifacts include intents, policy sets, bindings,
> 3084 binding type definitions and implementation type definitions.
> 3085 All of these artifacts within an SCA Domain are defined in SCA contributions in files called META-
> 3086 INF/definitions.xml (relative to the contribution base URI). An SCA runtime MUST make available to the
> 3087 Domain all the artifacts contained within the definitions.xml files in the Domain. [ASM10002] An SCA
> 3088 runtime MUST reject a definitions.xml file that does not conform to the sca-definitions.xsd schema.
> 3089 [ASM10003]
>
Thanks, I was looking in the Policy spec which didn't have any mention of this.
--
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/
Re: Policy and the location of definitions.xml
Posted by Raymond Feng <en...@gmail.com>.
This is defined in the SCA assembly spec:
3081 8 SCA Definitions
3082 There are a variety of SCA artifacts which are generally useful and which are not specific to a particular
3083 composite or a particular component. These shared artifacts include intents, policy sets, bindings,
3084 binding type definitions and implementation type definitions.
3085 All of these artifacts within an SCA Domain are defined in SCA contributions in files called META-
3086 INF/definitions.xml (relative to the contribution base URI). An SCA runtime MUST make available to the
3087 Domain all the artifacts contained within the definitions.xml files in the Domain. [ASM10002] An SCA
3088 runtime MUST reject a definitions.xml file that does not conform to the sca-definitions.xsd schema.
3089 [ASM10003]
Thanks,
Raymond
________________________________________________________________
Raymond Feng
rfeng@apache.org
Apache Tuscany PMC member and committer: tuscany.apache.org
Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
Personal Web Site: www.enjoyjava.com
________________________________________________________________
On Jul 30, 2010, at 8:53 PM, Luciano Resende wrote:
> I noticed that DefinitionsDocumentProcessor register itself to process
> "/META-INF/definitions.xml" and some iTests fails if we move the
> definitions.xml outside the META-INF folder (e.g itest-policies).
> Does the SCA Policy spec says we can only have definitions.xml inside
> META-INF folder ? Could someone point me where that is mentioned ?
>
> Thanks
>
> --
> Luciano Resende
> http://people.apache.org/~lresende
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/