[
https://issues.jboss.org/browse/CDI-31?page=com.atlassian.jira.plugin.sys...
]
Stuart Douglas commented on CDI-31:
-----------------------------------
I think that this could be as simple as Event.fireAsync() and
BeanManager.fireAsyncEvent().
The events observers would still be notified synchronously in respect to each other (i.e.
in the same thread), but fireAsync would return immediately. The async event would have
its own request context, in much the same way as an async EJB invocation.
The main reason why I am against specifying the threading type on the observer is that it
means that if a 3rd party adds an async observer to an event it opens you up to some very
nasty thread safety bugs if you are not using immutable events.
Asynchronous events
-------------------
Key: CDI-31
URL:
https://issues.jboss.org/browse/CDI-31
Project: CDI Specification Issues
Issue Type: Feature Request
Components: Events
Affects Versions: 1.0
Reporter: Nicklas Karlsson
Fix For: TBD
Consider including asynchronous events as their were specified in one of the previous
drafts.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira