You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by me...@apache.org on 2007/01/27 22:57:23 UTC
svn commit: r500634 -
/incubator/tuscany/java/sca/services/discovery/jxta/src/main/java/org/apache/tuscany/service/discovery/jxta/pdp/PeerListener.java
Author: meerajk
Date: Sat Jan 27 13:57:22 2007
New Revision: 500634
URL: http://svn.apache.org/viewvc?view=rev&rev=500634
Log:
Added exception rethrow.
Modified:
incubator/tuscany/java/sca/services/discovery/jxta/src/main/java/org/apache/tuscany/service/discovery/jxta/pdp/PeerListener.java
Modified: incubator/tuscany/java/sca/services/discovery/jxta/src/main/java/org/apache/tuscany/service/discovery/jxta/pdp/PeerListener.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/discovery/jxta/src/main/java/org/apache/tuscany/service/discovery/jxta/pdp/PeerListener.java?view=diff&rev=500634&r1=500633&r2=500634
==============================================================================
--- incubator/tuscany/java/sca/services/discovery/jxta/src/main/java/org/apache/tuscany/service/discovery/jxta/pdp/PeerListener.java (original)
+++ incubator/tuscany/java/sca/services/discovery/jxta/src/main/java/org/apache/tuscany/service/discovery/jxta/pdp/PeerListener.java Sat Jan 27 13:57:22 2007
@@ -23,6 +23,8 @@
import java.util.Map;
import java.util.concurrent.atomic.AtomicBoolean;
+import org.apache.tuscany.service.discovery.jxta.JxtaException;
+
import net.jxta.discovery.DiscoveryEvent;
import net.jxta.discovery.DiscoveryListener;
import net.jxta.discovery.DiscoveryService;
@@ -63,7 +65,6 @@
this.discoveryService = discoveryService;
this.interval = interval;
this.runtimeId = runtimeId;
- this.discoveryService.addDiscoveryListener(this);
}
/**
@@ -77,7 +78,9 @@
discoveryService.getRemoteAdvertisements(null, DiscoveryService.PEER, null, null, 5);
try {
Thread.sleep(interval);
- } catch(Exception e) {}
+ } catch(InterruptedException ex) {
+ throw new JxtaException(ex);
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org