[
https://issues.apache.org/jira/browse/ISIS-1028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14379064#comment-14379064
]
Dan Haywood commented on ISIS-1028:
-----------------------------------
re-opened; there is a fundamental limitation of the Guava event bus in that it
isn't possible to post to the event bus within a subscriber's callback. This
ticket is therefore resurrected to allow the event bus implementation to be
switched out, and in particular to provide an implementation based on Axon
framework.
> Create Event Bus Service based on Axon
> --------------------------------------
>
> Key: ISIS-1028
> URL: https://issues.apache.org/jira/browse/ISIS-1028
> Project: Isis
> Issue Type: New Feature
> Components: Core
> Affects Versions: core-1.8.0
> Reporter: Oscar Bou
> Assignee: Dan Haywood
> Fix For: 1.9.0
>
>
> Current Guava based implementation queues events, and that implies changes to
> the execution flow.
> Axon Event Bus implementations simply dispatches events as soon as are posted.
> That way, logic when dispatching events is always the same (immediate
> dispatching when posted), without depending on an Event being dispatched when
> no other Event is dispatching (so its Event Handlers would be invoked
> immediately) or when other Event is currently being dispatched (in which case
> Guava would queue it instead of immediately dispatching).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)