You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Venkatakrishnan (JIRA)" <tu...@ws.apache.org> on 2007/04/19 20:20:15 UTC

[jira] Resolved: (TUSCANY-1215) Support of property override with recursive scdl files

     [ https://issues.apache.org/jira/browse/TUSCANY-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Venkatakrishnan resolved TUSCANY-1215.
--------------------------------------

    Resolution: Fixed

This is resolved in r530505.  I have also included a testcase in iTest/properties.


> Support of property override with recursive scdl files
> ------------------------------------------------------
>
>                 Key: TUSCANY-1215
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1215
>             Project: Tuscany
>          Issue Type: Improvement
>    Affects Versions: Java-SCA-M2
>         Environment: All
>            Reporter: Hasan Muhammad
>         Assigned To: Venkatakrishnan
>
> We were trying this scenario out where we have a section in the default scdl as follows:
>     <service name="MySimpleServiceAnother">
>         <interface.java interface="mysca.test.myservice.MyService"/>
>         <reference>MySimpleServiceInRecursiveAnother/MyServiceNew1</reference>	   
> 	  <binding.sca uri="MySimpleServiceAnother"/>
>     </service>
>   <component name="MySimpleServiceInRecursiveAnother">
>     <implementation.composite scdlLocation="mySimpleService.scdl"/>
>     <property name="newLocation">Durham</property>
>     <property name="newYear">2009</property>
>   </component>
> We have the two properties newLocation and newYear defined in mySimpleService.scdl as follows:
>     <service name="MyServiceNew1">
>         <interface.java interface="mysca.test.myservice.MyService"/>
>         <reference>MyServiceComponentNew/MyService</reference>	   
>     </service>
>   <property name="newLocation" type="xs:anyURI">Raleigh</property>
>   <property name="newYear" type="xs:anyURI">2008</property>
>     <component name="MyServiceComponentNew">
>         <implementation.java class="mysca.test.myservice.impl.MyServiceImpl"/>
> 		<property name="location" source="$newLocation"/>
> 		<property name="year" source="$newYear"/>
>     </component>
> When we try to get the property of  location through MySimpleServiceAnother, it gives back the value "Raleigh". It should give "Durham", In other words during runtime, the original value must be overwritten with the new one that we provided in the default.scdl under the component "MySimpleServiceInRecursiveAnother". This feature of property override needs to be supported.
> Hasan

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org