diff options
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/trunk/itest/scaclient-api/src/main/java/itest/HelloworldServiceImpl.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/itest/scaclient-api/src/main/java/itest/HelloworldServiceImpl.java b/sca-java-2.x/trunk/itest/scaclient-api/src/main/java/itest/HelloworldServiceImpl.java index 4b9910bb21..5af221313e 100644 --- a/sca-java-2.x/trunk/itest/scaclient-api/src/main/java/itest/HelloworldServiceImpl.java +++ b/sca-java-2.x/trunk/itest/scaclient-api/src/main/java/itest/HelloworldServiceImpl.java @@ -21,15 +21,21 @@ package itest; import org.oasisopen.sca.annotation.EagerInit; import org.oasisopen.sca.annotation.Init; import org.oasisopen.sca.annotation.Scope; +import org.oasisopen.sca.annotation.Service; @EagerInit @Scope("COMPOSITE") -public class HelloworldServiceImpl implements HelloworldService { +@Service({HelloworldService.class, RemoteHelloworldService.class}) +public class HelloworldServiceImpl implements HelloworldService, RemoteHelloworldService { public String sayHello(String name) { return "Hello " + name; } + public String sayHelloRemote(String name) { + return "Hello " + name; + } + @Init public void init() { System.out.println(sayHello("world")); |