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

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

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.


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

Posted by "ant elder (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ant elder updated TUSCANY-3682:
-------------------------------

    Fix Version/s:     (was: Java-SCA-2.0-M5)
                   Java-SCA-2.0-Beta1

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


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

Posted by "antony (JIRA)" <de...@tuscany.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-3682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913088#action_12913088 ] 

antony commented on TUSCANY-3682:
---------------------------------

Yes. I tried that as well. If i place the service inside the  component tag, it is throwing the below error though i have annotated the interface with @Remotable. Also tried by annotating the implemented class with @Remotable.

SEVERE: org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent] - Component type service not found for component service (missing @Remotable annotation?): Component = TestComponentService = TestService
java.lang.IllegalStateException: org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: TestComponent] - Component type service not found for component service (missing @Remotable annotation?): Component = TestComponentService = TestService
	at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:173)


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


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

Posted by "Simon Nash (JIRA)" <de...@tuscany.apache.org>.
    [ 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.


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

Posted by "Luciano Resende (JIRA)" <de...@tuscany.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-3682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925896#action_12925896 ] 

Luciano Resende commented on TUSCANY-3682:
------------------------------------------

Does you service name match the interface name ? From your component definition it seems that there might be some mismatch there.

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


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

Posted by "Simon Laws (JIRA)" <de...@tuscany.apache.org>.
    [ 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.