diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-11 06:39:21 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-11 06:39:21 +0000 |
commit | 4fcefa96cd256eb7d5720324d596ff1272f5b183 (patch) | |
tree | ea582991071391189c82461081b782b1cdea1c00 /sandbox/travelsample/travel-contribution/src/scatours | |
parent | 716d910defb4185bfad19ba6eb29a88ce445e65d (diff) |
Make the search service OneWay
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@684645 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/travel-contribution/src/scatours')
-rw-r--r-- | sandbox/travelsample/travel-contribution/src/scatours/travel/TravelImpl.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sandbox/travelsample/travel-contribution/src/scatours/travel/TravelImpl.java b/sandbox/travelsample/travel-contribution/src/scatours/travel/TravelImpl.java index e4a641e1e5..e5cc0cae8f 100644 --- a/sandbox/travelsample/travel-contribution/src/scatours/travel/TravelImpl.java +++ b/sandbox/travelsample/travel-contribution/src/scatours/travel/TravelImpl.java @@ -87,7 +87,9 @@ public class TravelImpl implements TravelSearch, SearchCallback, TravelBooking{ while (responsesReceived < 3){ try { - this.wait(); + synchronized (this) { + this.wait(); + } } catch (InterruptedException ex){ // do nothing } @@ -114,7 +116,9 @@ public class TravelImpl implements TravelSearch, SearchCallback, TravelBooking{ responsesReceived++; try { - this.notifyAll(); + synchronized (this) { + this.notifyAll(); + } } catch (Exception ex) { } } |