Is there a good lightweight framework for java that provides a publish / subscribe template?
Some perfect features
- Generic Support
- Registering multiple subscribers to a publisher
- APIs are primarily interfaces and some useful implementations
- purely in mind, perseverance and transaction guarantees are not required.
I know about JMS, but it's too complicated for my need. Published / signed data is the result of a file system scan, and the scan results are sent to another component for processing, which are then processed before being submitted to another and so on.
EDIT: All in one process. The beans PropertyChangeListener property does not completely abbreviate it, because it reports property changes rather than publishing specific elements. I could train ProprtyChangeListener to work, having the property "last published object" and so published objects. PropertyChangeListeners do not support generics and are rooted in the semantics of property changes, and not in pure publication / subscription. The Observer / Observable java.util template would be nice, but Oberver is a concrete class.
java frameworks publish-subscribe
mdma Jun 13 '10 at 15:48 2010-06-13 15:48
source share