> In a jersey-guice-atmosphere application, in the module's
> configureServlets(), I'm trying to do this:
> toInstance(new DefaultBroadcaster("home"));
> but it dumps out with a null pointer exception in that constructor.
> It blows up in DefaultBroadcaster method setID() right here:
> Broadcaster b =
> BroadcasterFactory.getDefault().lookup(this.getClass(), id);
> Apparently, binding the broadcaster, so that I can have it injected
> into my resources (which are @RequestScoped) and elsewhere, is not
> What's the correct way to do this?