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: [ISSUE 59] SCA Spring C & I specification does not state what happens whena Bean exposed as a service implements mutliple interfaces - PROPOSAL



Folks,

The following is a proposal to RESOLVE Java Issue 59.

This proposal is DEPENDENT on the resolution of the issue raised to add a names attribute to the @Service
annotation.

Proposal:
------------------------------------------------
Where a Spring Bean in a Spring Application context implements more than one interface which is either explicitly or
implicitly exposed as a service according to SCA Java rules:

- Each interface is exposed as a separate service

- The name of each service MUST be unique. Uniqueness is achieved EITHER:

a) by giving each service an explicit unique name using the @Service SCA annotation within the bean class

OR

b) where the @Service annotation is not present, each service is given the name "beanName.serviceName",
where beanName is the name of the Bean in the application context and serviceName is the name of the service
determined implicitly from the name of the interface (without the package name).

In case a) it is the responsibility of the programmer to ensure that the service names specified in the @Service
annotation do not clash with any other service names in the same application context.

------------------------------------------------

Yours,  Mike.

Strategist - Emerging Technologies, SCA & SDO.
Co Chair OASIS SCA Assembly TC.
IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain.
Phone & FAX: +44-1962-818014    Mobile: +44-7802-467431  
Email:  mike_edwards@uk.ibm.com





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU








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