Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java-SCA-M2
-
None
-
None
-
None
-
All
Description
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