The enherent problem with having a server side bus that talks to a
client bus is that the server can't initiate the event. . (due to the
non-push nature of the web) but the second issue is that a client bus
services one client where as the server bus would need to service
many. Questions spud arise like can a server event fire to a specific
client or only to an individual client?
In the application that I'm developing I have a polling thread in the
gwt client and an event broadcast system on he server to allow the
server to notify clients of notworthy activities. I don't use a bus
on the server to handle requests though I just use RPC and command
pattern.
On Sep 29, 4:09 pm, PJ Gray <
pj4...@gmail.com> wrote:
> Yeah, I have thought the same thing as I was implementing
> MVP/CommandPattern. I have a few eventbus events that I handle with
> EventHandlers, but then I have the whole gwt rpc mechanism that uses my own
> generic action classes.
>
> Combining the two might be a good move, however it might get tricky crossing
> the great wall of javascript. I am no gwt expert, so I don't know how
> tight a coupling you can get from your server side stuff and GwtEvent
> (assuming you still want to use eventhandlers).
>
> I am sure its doable though.
>
> -pj
>