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

Can a single Component expose a mix of @Remotable and non-@Remotable Services?

From
Mark Combellack <>
Date
2008-09-08T14:40:01+00:00
ID
Thread
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 | 
← Prev in month ← Prev in thread
Next in thread → Next in month →