diff options
Diffstat (limited to '')
-rw-r--r-- | branches/sca-java-1.x/itest/recursive/src/main/java/composite/SourceImpl.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/itest/recursive/src/main/java/composite/SourceImpl.java b/branches/sca-java-1.x/itest/recursive/src/main/java/composite/SourceImpl.java index b9a0c7ff74..72bf552a1e 100644 --- a/branches/sca-java-1.x/itest/recursive/src/main/java/composite/SourceImpl.java +++ b/branches/sca-java-1.x/itest/recursive/src/main/java/composite/SourceImpl.java @@ -27,6 +27,7 @@ import org.osoa.sca.annotations.Service; @Scope("COMPOSITE") public class SourceImpl implements Source, SourceCallback { + public static int callbackCount = 0; private Target targetReference; private Target targetReference2; @@ -49,6 +50,9 @@ public class SourceImpl implements Source, SourceCallback { } public void receiveResult(String result) { + synchronized(this) { + callbackCount += 1; + } System.out.println("Work thread " + Thread.currentThread()); System.out.println("Result: " + result); } |