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

ISSUE-212: Service name conflict between @Service and @WebService

From
David Booz <>
Date
2010-09-02T15:07:22+00:00
ID
Thread
ISSUE-212: Service name conflict between @Service and @WebService
http://www.osoa.org/jira/browse/JAVA-212

Dave Booz
STSM, BPM and SCA Architecture
Co-Chair OASIS SCA-Policy TC and SCA-J TC
"Distributed objects first, then world hunger"
Poughkeepsie, NY (845)-435-6093  or  8-295-6093
e-mail:


|------------>
| From:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Bryan Aupperle/Raleigh/IBM@IBMUS                                                                                                                  |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                        |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |09/02/2010 09:39 AM                                                                                                                               |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |[sca-j] 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 →