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: Can a single Component expose a mix of @Remotable and non-@Remotable Services?


Hi,

 

Reading through the SCA-J Specifications, I was unable to be sure as to whether a single Component can expose a mix of @Remotable and non-@Remotable Services. The specifications do not say that you cannot so I presume this is allowed but I thought I would check to be sure.

 

So for an example, suppose we have:

 

public interface MyLocalService {

    void aLocalMethod();

}

 

@Remotable

public interface MyRemoteService {

    void aRemoteMethod();

}

 

 

@Service(interfaces = {MyLocalService.class, MyRemoteService.class})

public class MyServiceImpl implements MyLocalService, MyRemoteService {

 

    public void aLocalMethod() {

        // ...

    }

 

    public void aRemoteMethod() {

        // ...

    }

}

 

Is the above valid?

 

Thanks,

 

Mark

Mark Combellack| Software Developer| Avaya | Eastern Business Park | St. Mellons | Cardiff | CF3 5EA | Voice: +44 (0) 29 2081 7624 | mcombellack@avaya.com

 

 



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