Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2010-09-27 16:26:06 +0000
committerslewis2010-09-27 16:26:06 +0000
commitcb6a263384c9cdd027d7c73861a8b772d0717cb9 (patch)
treef57756ffef7783f26a11e7a41a5785b4c14579ca /server-side
parent0e184beca9dacdc26ec009dbc54be108a5c5723e (diff)
downloadorg.eclipse.ecf-cb6a263384c9cdd027d7c73861a8b772d0717cb9.tar.gz
org.eclipse.ecf-cb6a263384c9cdd027d7c73861a8b772d0717cb9.tar.xz
org.eclipse.ecf-cb6a263384c9cdd027d7c73861a8b772d0717cb9.zip
Changed DistributedEventAdmin.postEvent to throw a runtime exception in the case where the remote messaging fails upon send...e.g. because the container has been disconnected.
Diffstat (limited to 'server-side')
-rw-r--r--server-side/bundles/org.eclipse.ecf.remoteservice.eventadmin/META-INF/MANIFEST.MF2
-rw-r--r--server-side/bundles/org.eclipse.ecf.remoteservice.eventadmin/src/org/eclipse/ecf/remoteservice/eventadmin/DistributedEventAdmin.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/server-side/bundles/org.eclipse.ecf.remoteservice.eventadmin/META-INF/MANIFEST.MF b/server-side/bundles/org.eclipse.ecf.remoteservice.eventadmin/META-INF/MANIFEST.MF
index 52ebb619b..d4708ee07 100644
--- a/server-side/bundles/org.eclipse.ecf.remoteservice.eventadmin/META-INF/MANIFEST.MF
+++ b/server-side/bundles/org.eclipse.ecf.remoteservice.eventadmin/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %bundleName
Bundle-SymbolicName: org.eclipse.ecf.remoteservice.eventadmin
-Bundle-Version: 1.0.100.qualifier
+Bundle-Version: 1.0.200.qualifier
Bundle-Vendor: %bundleProvider
Bundle-RequiredExecutionEnvironment: CDC-1.1/Foundation-1.1,
J2SE-1.4
diff --git a/server-side/bundles/org.eclipse.ecf.remoteservice.eventadmin/src/org/eclipse/ecf/remoteservice/eventadmin/DistributedEventAdmin.java b/server-side/bundles/org.eclipse.ecf.remoteservice.eventadmin/src/org/eclipse/ecf/remoteservice/eventadmin/DistributedEventAdmin.java
index 32e7492ea..42978ac26 100644
--- a/server-side/bundles/org.eclipse.ecf.remoteservice.eventadmin/src/org/eclipse/ecf/remoteservice/eventadmin/DistributedEventAdmin.java
+++ b/server-side/bundles/org.eclipse.ecf.remoteservice.eventadmin/src/org/eclipse/ecf/remoteservice/eventadmin/DistributedEventAdmin.java
@@ -26,6 +26,7 @@ import org.eclipse.osgi.framework.eventmgr.CopyOnWriteIdentityMap;
import org.eclipse.osgi.framework.eventmgr.EventManager;
import org.eclipse.osgi.framework.eventmgr.ListenerQueue;
import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceException;
import org.osgi.service.event.Event;
import org.osgi.service.event.EventAdmin;
import org.osgi.service.event.TopicPermission;
@@ -65,6 +66,7 @@ public class DistributedEventAdmin extends BaseSharedObject implements
"handlePostEvent", new DistributedEventAdminMessage(event)));
} catch (IOException e) {
logError("IOException posting distributed event "+event+" to "+event.getTopic(), e);
+ throw new ServiceException("postEvent failed",e);
}
localDispatch(event, true);
}

Back to the top