You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Laws (JIRA)" <de...@tuscany.apache.org> on 2010/09/21 19:02:33 UTC

[jira] Commented: (TUSCANY-3682) SCA RMI registration

    [ https://issues.apache.org/jira/browse/TUSCANY-3682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913080#action_12913080 ] 

Simon Laws commented on TUSCANY-3682:
-------------------------------------

In the JAVA IMPLEMENTATION configuration can you put the binding configuration inside the component. Something like the following...
    
    <component name="TestComponent">
        <implementation.java class="test.Impl"/>
        <service name="TestServices">
            <interface.java interface="test.interface"/>
            <t:binding.rmi host="localhost" port="8099" serviceName="TestRMIService"/>
        </service> 
   </component> 

Obviously the service name has to match whatever your service name is. I've just assumed that it's the same as the Spring case here. 

> 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-M5
>
>
> 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.