sca-assembly message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: [ASSEMBLY-232] ASM_10002 related policy definition should be attached tocomposite model - Proposal
- From: Mike Edwards <mike_edwards@uk.ibm.com>
- To: "OASIS Assembly" <sca-assembly@lists.oasis-open.org>
- Date: Tue, 1 Jun 2010 15:52:09 +0100
Folks,
Here is a proposal to resolve Issue
232:
a) Modify the composite TEST_ASM_10002
to attach the PolicySet "PolicySet1" in the places where the
Fred intent is used, to handle the Direct Attachment case:
<composite
xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
name="TEST_ASM_10002">
<component
name="TestClient">
<implementation.composite
name="test:TestClient_0002"/>
<service
name="TestInvocation">
<interface.wsdl
interface="http://test.sca.oasisopen.org/#wsdl.porttype(TestInvocation)"/>
<binding.ws/>
</service>
<!--
Reference requires a user-defined intent -->
<reference
name="reference1"
target="TestComponent1/Service1"
requires="test:Fred"
policySets="test:PolicySet1"/>
<property
name="testName">ASM_10002</property>
</component>
<component
name="TestComponent1">
<implementation.composite
name="test:TestComposite1"/>
<!--
Service requires same user-defined intent -->
<service
name="Service1"
requires="test:Fred"
policySets="test:PolicySet1">
<interface.wsdl
interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
</service>
<property
name="serviceName">service1</property>
</component>
</composite>
b) Add externalAttachment elements in
the definitions.xml file in the General contribution to attach the PolicySet1
policy set to services & references which are marked
with the Fred intent, which handles
the externalAttachment case:
<definitions
xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912"
xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/200903">
<!--
A user-defined intent for the purposes of testing the intent resolution
mechanism -->
<intent
name="Fred"
constrains="sca:binding"
intentType="interaction"/>
<!--
A policySet which claims to satisfy the user-defined intent "Fred"
-->
<policySet
name="PolicySet1"
provides="test:Fred"
appliesTo="//service|//reference">
<!--
This policySet intentionally left empty -->
<!--
...it is valid for a policySet to contain no concrete policy statements
-->
</policySet>
<!--
external attachment of the policy set to places where the intent is specified
-->
<externalAttachment
policySets="test:PolicySet1" attachTo="//sca:reference[IntentRefs('Fred')]"/>
<externalAttachment
policySets="test:PolicySet1" attachTo="//sca:service[IntentRefs('Fred')]"/>
</definitions>
Yours, Mike.
Strategist - Emerging Technologies, SCA & SDO.
Co Chair OASIS SCA Assembly TC.
IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain.
Phone & FAX: +44-1962-818014 Mobile: +44-7802-467431
Email: mike_edwards@uk.ibm.com
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]