-
1. Re: Unable to send messages on a client-to-client errai bus
cbrock Sep 7, 2012 11:48 AM (in response to mdhirsch30345)It may be that you're trying to send a message to the bus before the bus is ready. You can use InitVotes.registerInitCallback(Runnable) to create a callback to initialize your app after thebus is done loading.
-
2. Re: Unable to send messages on a client-to-client errai bus
mdhirsch30345 Sep 7, 2012 2:05 PM (in response to cbrock)Thanks for the reply, Mike.
I don't think I'm sending the message too quickly, unless the bus extraordinarily slow. I'm sending the message inresponse to a button click after filling out two text fields. I'm not that fast a typist! Is there a command I needed to run to initialize the bus? I'm not doing any server-side bus usage, so maybe I need to tell it to initialize?
Strangely, I got things to work with events instead of the bus. Since I thought the events infrastructure was built on the bus I didn't expect it to work. Instead, it not only worked but was the easiest thing to implements in my 2 weeks of struggle with Errai. God job!
I didn't have to do anything to get the events to work. In particular, I didn't need to change my web.xml.
Thanks agian,
Michael