<< 24 February 2009 | Home | 26 February 2009 >>

Using EventAdmin for interprocess-communication

One of the tricks to really loosely coupling components in Eclipse is using an event broker to publish events and subscribe to events. You can roll your own which is easy enough (lets face it - it's a listener interface and a list keeping track of listeners) but it adds a constraint among plug-ins. Another solution is to use the OSGi EventAdmin service.

EventAdmin uses a concept of hierarchical topics much like a messaging system (JMS) and is available from all plugins. You simply add a dependency on org.eclipse.osgi.services and you're laughing.

This "Event Admin Service specification explained by Example" post has all the info you need to get started and if you ask nicely and there's enough interest I might even share my EventAdmin test plugin with you... :-)

Tags : , ,

How marvelous!

Here's a TED Talk video with Benjamin Zander our gifted and exciting Lotusphere 2009 Closing Session speaker. How Marvelous! ;-)