I agree. A static field is ugly.
You can use the <depends> clause in any jboss descriptor
to make sure the errai webapp is started before the seam components.
(If they are separate deployments)
However, if run into trouble again
don't hesitate to get in touch with me. Things like this shouldn't
prevent you from getting started.
BTW, are you using Seam or Weld?
/Heiko
On Feb 2, 2010, at 6:44 AM, Sean Flanigan wrote:
Thanks, I've kludged something together with that info. I found
that
Errai's startup happens after all my Seam components are
initialized/injected, because the Errai servlet loads after
SeamListener. So I'm just stuffing the MessageBus into a static field
for now. Ugly, I know, but getting started with Errai is taking about a
week longer than I'd hoped (for various reasons).