[
https://issues.apache.org/jira/browse/TUSCANY-3682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925970#action_12925970
]
Simon Nash commented on TUSCANY-3682:
-------------------------------------
You can't use service promotion in a top-level composite to add a binding
configuration to the service. This used to work in 1.x but it was removed in
2.x because the OASIS SCA 1.1 spec says that the promoted service must be
ignored in this case. Promoting a service is still supported in 2.x if the
promoted service is inside a composite that's used as the implementation of
another component.
> SCA RMI registration
> --------------------
>
> Key: TUSCANY-3682
> URL: https://issues.apache.org/jira/browse/TUSCANY-3682
> Project: Tuscany
> Issue Type: Test
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-2.0-M5
> Environment: JSF+JAVA 6+Tuscany SCA 2.0 SNAPSHOT
> Reporter: antony
> Fix For: Java-SCA-2.0-Beta1
>
>
> I am trying to register the sca service as RMI service. But it is not getting
> exposed as expected. If i do the same using Spring Implementation, the
> service is exposed as RMI service and i am able to access it. Please let me
> know what is going wrong here...
> I am using SCA 2.0 SNAPSHOT.
> JAVA IMPLEMENTATION configuration
> -------------------------------------------------------------
> <service name="TestService" promote="TestComponent">
> <interface.java interface="test.interface" />
> <t:binding.rmi host="localhost" port="8099"
> serviceName="TestRMIService"/>
> </service>
>
> <component name="TestComponent">
> <implementation.java class="test.Impl"/>
> </component>
> SPRING IMPLEMENTATION configuration
> ------------------------------------------------------------
> <component name="TestComponent">
> <implementation.spring location="/WEB-INF/applicationContext.xml"/>
> <service name="TestServices">
> <interface.java interface="test.interface"/>
> <t:binding.rmi host="localhost" port="8099"
> serviceName="TestRMIService"/>
> </service>
> </component>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.