Questions tagged [event-bus]

Questions pertaining to Event Bus systems (e.g. GWT, otto, etc.).

Event Bus Systems have Event driven/distributed asynchronous architecture patterns. The advantages of these systems are that can be used with small to complex applications, enable creating highly scalable reactive applications and services can be independent, isolated and decoupled from each other. publish/subscribe system is possible by using an implementation of an event bus.

446 questions
0
votes
1 answer

How to use eventbus messaging in vertx?

I followed the instructions in sample and ran: vertx run eventbus_pointtopoint/receiver.rb -cluster vertx run eventbus_pointtopoint/sender.rb -cluster Then I only got: ➜ ruby vertx run eventbus_pointtopoint/receiver.rb -cluster Starting…
Kamil Lelonek
  • 14,592
  • 14
  • 66
  • 90
0
votes
1 answer

Catching multiple events from guava eventbus

i would like to catch multiple events in case to run some method with several arguments. Is there possibility to achieve that without writing own dispatcher that will glue my events together?
hexin
  • 947
  • 7
  • 17
0
votes
2 answers

Akka scala Event bus with different classifiers depending on the subscriber

I am studying the Akka EventBus to check if it can solve one of my design problem and I still do not know. The problem is the following. to simplify, I have: case class Request(requesterId: String, operation: String, header: RequestHeader) case…
Joel
  • 669
  • 7
  • 25
0
votes
1 answer

Delivering updated list elements via an otto event to Mortar's screen

I'm trying to use Mortar for a simple application that shows a list of items based on mortar-sample. I'm using Retrofit/Gson to fetch meta-data of these items and Otto to deliver updates to the view once the items are downloaded. I'm also using…
bachr
  • 5,780
  • 12
  • 57
  • 92
0
votes
1 answer

Making data accessible to fragments

I am having an app which is retrieving data in the main activity and sending an event to all fragments as soon as it is available. So for the first start it looks like this: App starts (fragments are initialising in the background) -> feed download…
stoefln
  • 14,498
  • 18
  • 79
  • 138
0
votes
1 answer

Otto runtime exception

My app uses Otto all over the place but I am consistently running into the same Runtime Exception crash. This is happening with several different events and that makes me think I am not implementing otto correctly. I am using the Main Thread Bus…
SamIAmHarris
  • 2,158
  • 3
  • 16
  • 19
0
votes
1 answer

EventBus object's methods not working in java

I am trying to include EventBus in my application. I followed http://tomaszdziurko.pl/2012/01/google-guava-eventbus-easy-elegant-publisher-subscriber-cases/ link. I am getting compile errors: I've added the guava-16.0.1.jar to the project. But the…
Dixit Gokhale
  • 601
  • 1
  • 12
  • 32
0
votes
1 answer

How to write tests for tracking event flows in eventbus?

Long description: In our gwt with mvp4g app we have pretty complicated flow of events in eventbus. One event like LOGIN produces multiple others as a reaction from presenters/handlers. Currently we have great difficulties with understanding how…
0
votes
3 answers

GwtEvent does not get dispatched

I have an application that uses EventBus for dispatching Application wide events. For some reason if I call one event and then try to register handler immediately before firing the second event it does not get dispatched. Is there any other way to…
boltun
  • 48
  • 4
0
votes
1 answer

Why CurrentUser implements HasHandlers in gwtp-sample-tab?

I am self learning GWT and GWTP. I am trying to set up my logging service and I want my currentUser object to be retrieved from the server before any Presenter that depends on it is revealed. However, I have run into an issue which I think has to…
manubot
  • 290
  • 2
  • 19
0
votes
1 answer

Can EventBus call a separated Presenter (not a nested Presenter) in GWTP?

Ok, here is my problem. I have 2 presenters: FirstPresenter (ex: abc.com#first) & SecondPresenter (ex: abc.com#second). There is a button on SecondPresenter & when user clicks on that button then the FirstPresenter will popup a message. So, here is…
Tum
  • 3,614
  • 5
  • 38
  • 63
0
votes
1 answer

GWT - EventBus calling event for object that no longer exists

I ran into this problem in a large program, so I wrote a small sample to test it. I'm hoping someone can explain this to me. Here's the code: EventBus bus = new SimpleEventBus(); class TestClass { TestClass() { …
Marconius
  • 683
  • 1
  • 5
  • 13
0
votes
2 answers

App crashes saying that a library is not included, even though it is

My Android app seemed to have been working fine till i did a git reset on it. Now it keep crashing and says that a library I am using is not present. This is the crash log I get 04-11 16:31:31.230: E/AndroidRuntime(9206): FATAL EXCEPTION: main 04-11…
Amit
  • 3,952
  • 7
  • 46
  • 80
0
votes
3 answers

GWT: How to share a java Object (ie: EventBus) between two modules

I’m building a large application and I would like to split it in several modules like Core Module for initialization, users management, etc…, Customer Module, Production Module, etc… I want to split it in multiples GWT modules (not using GWT…
Justin C.
  • 301
  • 1
  • 3
  • 9
0
votes
1 answer

Any library that helps build a clustered, distributed, event bus library?

Is there any Java library that allows to build a clustered (thus, distributed) event bus? I'm not talking about relying to external pub/sub services like ZeroMQ/RabbitMQ/Redis, but a Java library that does all that internally (that is, keeping the…
Mark
  • 67,098
  • 47
  • 117
  • 162
1 2 3
29
30