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

Mike Edwards commented on TUSCANY-3962:
---------------------------------------

"The interface does contain overloaded methods but I think that this should be 
allowed for an @Reference."

Uh - no.  If this interface is meant to be remotable, this implies that the 
reference *could* be changed by configuration to use a different service using 
a different protocol, such as Web services, without changing the implementation 
code at all.  This is what SCA is about.

*IF* the interface has overloaded methods and the reference was switched to use 
Web services, then it would fail.  That is the reason for this restriction on 
overloaded methods.

What you have in your example is a case of an interface that can only be used 
remotely over a very limited set of protocols.  I think that needs some special 
handling so that it is clear that the interface is not usable more generally.  
eg some kind of Intent gets applied that is only satisfied by a <binding.ejb> 
or a similar style of mechanism.
                
> JCA20001 should not apply to interfaces which Tuscancy references
> -----------------------------------------------------------------
>
>                 Key: TUSCANY-3962
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3962
>             Project: Tuscany
>          Issue Type: Bug
>          Components: OASIS Compliance - TUSCANY
>    Affects Versions: Java-SCA-2.0-Beta3
>         Environment: WindowsXP SP3
>            Reporter: Glen Conboy
>         Attachments: myscaproject.zip
>
>
> I have a component which references a Java RMI interface.
> When I try to run Tuscany I get this error:
> org.apache.tuscany.sca.interfacedef.OverloadedOperationException: [JCA20001] 
> Cannot overload operation xyz on aaa.bbb.ccc.ddd.ServerInterface as it is a 
> @Remotable interface
> JCA20001 basically states "Remotable Services MUST NOT make use of method 
> overloading".  However I think that this should only apply to services which 
> Tuscany is exposing.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to