lightweight publish/subscribe framework in java [closed]

It seems this fits the requirements:

EventBus from Google Guava Library – “Publish-subscribe-style communication between components without requiring the components to explicitly register with one another”. It can also be an AsyncEventBus that will dispatch events on another thread.

Some extra options to consider:

  1. If it’s in same process it’s possible the Observer pattern can be used. Subscribers can add listeners and receive event notifications. Observable is already part of the Java API.

  2. FFMQ is a full Java, light-weight, Fast JMS 1.1 Queue implementation.

Leave a Comment