summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-12-06 10:30:16 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-12-06 10:30:16 +0000
commit6c140c8eac266f62ee90487b7a92a05178b9a449 (patch)
tree98bd81ca7ea9f810321a94f567e9e5c3edf562dc /sca-java-2.x/trunk
parent6d8be961644a29d320ae936a47a4367e8f63ea56 (diff)
Make the test service remotable and add a @Service annottion as the service is being introspected incorrectly(need to investigate why, looks like some classloader issue)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@887657 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-client-webapp/src/main/java/testing/HelloworldService.java3
-rw-r--r--sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-service-contribution/src/main/java/testing/HelloworldImpl.java2
2 files changed, 5 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-client-webapp/src/main/java/testing/HelloworldService.java b/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-client-webapp/src/main/java/testing/HelloworldService.java
index 8c67e05aa7..0be22979c2 100644
--- a/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-client-webapp/src/main/java/testing/HelloworldService.java
+++ b/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-client-webapp/src/main/java/testing/HelloworldService.java
@@ -20,6 +20,9 @@ package testing;
// TODO: should the webapp need to include the service interface?
+import org.oasisopen.sca.annotation.Remotable;
+
+@Remotable
public interface HelloworldService {
String sayHello(String name);
diff --git a/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-service-contribution/src/main/java/testing/HelloworldImpl.java b/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-service-contribution/src/main/java/testing/HelloworldImpl.java
index c9c6ff66d6..564b2e332f 100644
--- a/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-service-contribution/src/main/java/testing/HelloworldImpl.java
+++ b/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-service-contribution/src/main/java/testing/HelloworldImpl.java
@@ -20,8 +20,10 @@ package testing;
import org.oasisopen.sca.annotation.Init;
import org.oasisopen.sca.annotation.Scope;
+import org.oasisopen.sca.annotation.Service;
import org.oasisopen.sca.annotation.EagerInit;
+@Service(HelloworldService.class)
@Scope("COMPOSITE") @EagerInit
public class HelloworldImpl implements HelloworldService {