Re: [sca-j] ISSUE 212: @Service vs. @WebService name conflicts

From
Bryan Aupperle <>
Date
2010-10-04T17:50:27+00:00
ID
Thread
Re: [sca-j] ISSUE 212: @Service vs. @WebService name conflicts
After today's call we have three possible
approaches to resolving this issue: Treating a name conflict as an error,
having different names define multiple services or name from @Service overrides
name from @WebService.

Here is a starting list of the advantages
and disadvantages of each...

Treating a name conflict as an error:

   Advantages

      No surprise services
defined

      No need to try
and infer developer's intentions  

   Disadvantages

      Forces a developer
to make source changes to fix error

      Removes developer's
control over the SCA service name (i.e. is forced to use name from @WebService)

Different names define multiple services:

   Advantages

      Allows for different
services with different sets of intents

      No need to try
and infer developer's intentions 

      Generalizes to
any service name mismatch scenarios 

   Disadvantages

      Potential developer
surprise at additional service(s) being created

Name from @Service overrides name from
@WebService:

   Advantages

      Keeps developer's
control over the SCA service name

      Idea is that @Service
was added for a reason  

   Disadvantages

      Does not address
conflicting @WebService names (@WebService on both interface and implementation
class)

      Potential confusion
if a client is using a WSDL document derived, using JAX-WS tools, from
the @WebService annotation (i.e. WSDL portName and SCA service name would
not match)

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: 

From:
Bryan Aupperle/Raleigh/IBM@IBMUS

To:


Date:
09/24/2010 09:26 AM

Subject:
[sca-j] ISSUE 212: @Service vs. @WebService
name conflicts

I have uploaded a proposal for Issue
212 base on the discussion in Monday's call [1].  It includes an additional
normative statement in the CAA spec, with a corresponding Test Assertion
and TestCase and comments in the CI spec including a reference to the CAA
spec.  The bulk of the test artifacts for the test case are available
[2].  The updated version of tuscany-oasis-sca-tests-errors.properties
is not ready yet.  Tuscany needs to add a test for this mismatch and
until that is done I do not know what the error message will be.

[1] https://www.oasis-open.org/apps/org/workgroup/sca-j/download.php/39538/Issue%20212.zip

[2] http://tools.oasis-open.org/version-control/browse/wsvn/sca-j/TestCases/?rev=199&sc=1

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: