OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-j message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: NEW ISSUE: Service name conflict between @Service and @WebService


Target: CAA Spec CD04 and JCI Spec CD2

Description: The CAA spec defines rules in section 10.28 for the name of a service exposed by an implementation with an @Service annotation.  Section 11.1 of the spec defines rules for the service name when an implementation class or an interface is annotated with @WebService.  Section 8.2.1 of the JCI spec also has rules for the service name in the presence of an @WebService annotation.

These rules can be in conflict if both @Service and @WebServices annotations are present.  For example:
 
@Service(ServiceWithName.class)
public class serviceWithNameImpl implements ServiceWithName {

        ...

}


and


@WebService(name="AnnotationName")

@Remotable

public interface ServiceWithName {

        ...        

}


The @Service annotation would imply that the service name of a component using serviceWithNameImpl as an implementation would be ServiceWithName but @WebService annotation requires the service name to be AnnotationName.


Proposal:  We either need to require an error to be raised or define the precedence of the two annotations.

Bryan Aupperle, Ph.D.
STSM, WebSphere Enterprise Platform Software Solution Architect
WW Center of Excellence for Enterprise Systems & Banking Center of Excellence Application Integration Architect

Research Triangle Park,  NC
+1 919-254-7508 (T/L 444-7508)
Internet Address: aupperle@us.ibm.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]