Bug 412261 - [Distributed EventAdmin] Allow to only log serialization failures
Summary: [Distributed EventAdmin] Allow to only log serialization failures
Status: RESOLVED FIXED
Alias: None
Product: ECF
Classification: RT
Component: ecf.remoteservices (show other bugs)
Version: 3.6.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Markus Kuppe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-04 02:46 EDT by Markus Kuppe CLA
Modified: 2013-07-04 10:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Kuppe CLA 2013-07-04 02:46:36 EDT
org.eclipse.ecf.remoteservice.eventadmin.DistributedEventAdmin.handleSendMessageException(String, Event, Object[], IOException) always throws a ServiceException but I can see use-cases where it's fine if events with non-serializable data just get ignored. Thus allow users to configure the behavior (with a system property).

-Dorg.eclipse.ecf.remoteservice.eventadmin.DistributedEventAdmin.IgnoreSerialzationFailures=true
Comment 1 Markus Kuppe CLA 2013-07-04 03:04:28 EDT
Also see bug #412186 ([Distributed EventAdmin] Revert to "SmartSerialization" if event data not serializable)
Comment 2 Markus Kuppe CLA 2013-07-04 10:35:59 EDT
http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/commit/?id=4e252b22a27185acf76a2a641ec2396afa55581c adds the system property to ignore serialization exceptions.
Comment 3 Markus Kuppe CLA 2013-07-04 10:37:01 EDT
http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/commit/?id=610a2412e9e31426f32cc2da16a9117f1670584f adds a second mechanism with which one can register an EventTopicFilter service that defines event topics that will only be send out locally and not remoting attempts will be made.