This content has been marked as final.
Show 1 reply
-
1. Re: asynchronous RPC handling?
csa Jul 20, 2012 12:05 PM (in response to almac)Hi Alvin,
This is currently not possible, but I think it's a good idea. We could support returning a Future in remote interface methods. Would you mind creating a JIRA for this?
As an alternative you could use conversational messages (server messages delivered to a single client in response to another event) using the MessageBuilder: https://docs.jboss.org/author/display/ERRAI/Conversations
Note that this won't work for conversational CDI events as there the worker thread would have to reply directly (conversational context stored in ThreadLocals).
Cheers,
Christian