OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-assembly message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [sca-assembly] Binding name in the service/reference promotion case



Raymond,

Good question; It seems a bit odd to me to have a binding change its name when its parent service is promoted, however what you would then end up with from an external viewpoint would be promoted service 2 having binding with name service 1, which also seems a little odd.

having the name change on promotion does introduce the possibility of an unpromotable service:

<composite ...>
      <service name="Service2" promote="Component1/Service1">

      <component name="Component1">
                   <service name="Service1">
                               <binding.sca/> <!-- it can be created implicitly if no bindings are present -->

                                <binding.ws name="Service2"/>
                   </service>
      </component>
...
</composite>

This would fail because you'd end up with two bindings on Service2 with the same name.

For that reason I'd prefer that the binding name defaults to the name of its parent service (or reference) element.

Regards, Simon

Simon Holdsworth
STSM, SCA Bindings Architect; Master Inventor; OASIS SCA Bindings TC Chair
MP 211, IBM UK Labs, Hursley Park, Winchester SO21 2JN, UK
Tel +44-1962-815059 (Internal 245059) Fax +44-1962-816898
Internet - Simon_Holdsworth@uk.ibm.com



From: Raymond Feng <rfeng@us.ibm.com>
To: sca-assembly@lists.oasis-open.org
Date: 30/09/2009 16:54
Subject: [sca-assembly] Binding name in the service/reference promotion case





Hi,

In a composite as follows:

<composite ...>
      <service name="Service2" promote="Component1/Service1">

      <component name="Component1">
                   <service name="Service1">
                               <binding.sca/> <!-- it can be created implicitly if no bindings are present -->
                   </service>
      </component>
...
</composite>

The binding.sca will get a name "Service1". When it is inherited by the composite service "Service2", what happens to its name? Should it be "Service1" or "Service2"?

Thanks,

Raymond


Raymond Feng
Senior Software Engineer, Apache Tuscany PMC Member & Committer
IBM Bay Area Lab, 1001 E Hillsdale Blvd, Suite 400, Foster City, CA 94404, USA
E-mail
:
rfeng@us.ibm.com, Notes: Raymond Feng/Burlingame/IBM, Tel: 650-645-8117, T/L: 367-8117
Apache Tuscany
:
http://tuscany.apache.org
Co-author of Tuscany In Action:
http://www.manning.com/laws









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]