This content has been marked as final.
Show 3 replies
-
1. Re: Errai no longer recognizing servlet class name as subject (NoSubscribersToDeliverTo)
csa Jan 23, 2012 1:37 PM (in response to navigateur)I've created a JIRA for this: https://issues.jboss.org/browse/ERRAI-207
As a workaround, you can add a constructor to your @Service and create a subscription for it. Additionally to using it as an RPC-endpoint, you should now be able to send plain messages to it using the classname as subject.
{code}
@Inject
public YourService(MessageBus bus) {
bus.subscribe(this.getClass().getSimpleName(), this);
}
{code}
-
2. Re: Errai no longer recognizing servlet class name as subject (NoSubscribersToDeliverTo)
navigateur Jan 23, 2012 2:48 PM (in response to csa)Excuse my ignorance but is that all I need to do? I already have a RequestDispatcher constructor (which I need), and I have little-to-no knowledge about @Inject, so do I do "@Inject public YourService(RequestDispatcher dispatcher, MessageBus bus)"? Or something else?
-
3. Re: Errai no longer recognizing servlet class name as subject (NoSubscribersToDeliverTo)
csa Jan 23, 2012 3:02 PM (in response to navigateur)Yes, that should work.