← Prev in month ← Prev in thread
Next in thread → Next in month →

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

From
Bryan Aupperle <>
Date
2010-09-02T13:38:53+00:00
ID
Thread
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: 
← Prev in month ← Prev in thread
Next in thread → Next in month →