diff options
3 files changed, 5 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java index c51dc66caf..d27bf754fb 100644 --- a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java +++ b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java @@ -20,7 +20,9 @@ package helloworld;
import org.oasisopen.sca.annotation.Reference;
+import org.oasisopen.sca.annotation.Requires;
+@Requires("{http://tuscany.apache.org/xmlns/sca/1.1}testIntent")
public class HelloWorldClient implements HelloWorld {
@Reference
diff --git a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyInterceptor.java b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyInterceptor.java index ea6b31c5cb..6600f34b66 100644 --- a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyInterceptor.java +++ b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyInterceptor.java @@ -76,7 +76,7 @@ public class TestPolicyInterceptor implements PhasedInterceptor { }
public Message invoke(Message msg) {
- System.out.println("In interceptor");
+ System.out.println("In interceptor at " + subject.toString());
return getNext().invoke(msg);
}
diff --git a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/helloworld.composite b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/helloworld.composite index fa3d9ee701..79efac49c3 100644 --- a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/helloworld.composite +++ b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/helloworld.composite @@ -31,7 +31,8 @@ </component>
<component name="HelloWorldService">
- <implementation.java class="helloworld.HelloWorldService"/>
+ <implementation.java class="helloworld.HelloWorldService"
+ requires="tuscany:testIntent"/>
<service name="HelloWorld" requires="tuscany:testIntent">
<binding.ws name="BindingWS"/>
</service>
|