开发者

PubSub EventBus in Java (comet-style)

开发者 https://www.devze.com 2023-03-18 10:47 出处:网络
I am trying to build a very simply event bus, where both subscriptions and publications are made in Java applications.

I am trying to build a very simply event bus, where both subscriptions and publications are made in Java applications.

However, the bus needs to be deployed on server side, while multiple subscribers and publishers can interact wit开发者_如何转开发h it, from different locations.

So for example, simpleeventbus and EventBus are good but only when working with a single JVM.

I’ve been thinking about a Comet-like framework, but one where I could do the publications/subscriptions directly within Java. Do such frameworks or libraries exist?

Or what other suggestion would there be for this?


check Oracle complex event processing (CEP). There is an example in CEP documentation , how to integrated with Bayeux protocol by the Dojo Foundation.

0

精彩评论

暂无评论...
验证码 换一张
取 消