On Sun, Jun 12, 2011 at 9:01 AM, Subash Chaturanga <subash...@gmail.com> wrote: > Hi all, This is regarding finalizing the basic implementation of > FaceRecognitionService component. > $subject ? > > It's better if we can have them overloaded. Else I will name them separately > in the interface. >
>From the SCA Spec : A remotable service is defined using the @Remotable annotation on the Java interface or Java class that defines the service, or on a service reference. Remotable services are intended to be used for coarse grained services, and the parameters are passed by-value. [JCA20001] This means that, if you are creating a coarse-grained service (@Remotable services), you MUST NOT use operation overloading. If you are defining fine-grained services, which are not remotable, it's ok to use operation overloading. See [1] for more details on coarse-grained versus fine-grained. Now, as for the reasons it's not allowed, there is a thread in the Tuscany dev-list which has some good details [2] [1] http://www.ibm.com/developerworks/webservices/library/ws-soa-granularity/ [2] http://markmail.org/message/3pjg3a4vq5mde4p6 -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/