The reason for no EventBus implementation in Sculptor (introduced in 2010) for EJB3 is that EJB3 at these times (JEE5) had no support for events but CDI (introduced in JEE6) does.So nowadays with CDI it should be possible to come up with a Sculptor EventBus implementation for JEE6. This needs the following:
- An implementation of Sculptors org.sculptor.framework.event.EventBus interface (similar to the provided CamelEventBusImpl or SpringIntegrationEventBusImpl)
- Modifications to the corresponding Sculptor templates (e.g. DomainObjectAnnotationTmpl or ServiceEjbTmpl) for adding the EventBus-specific annotations, e.g. for CDI @Observes, @Updates or @Qualifier
Instead using JEE6 how about Google Guava or Reactors or Axon ones? These implementations are not limited to JEE and can be used in a plain-vanilla Spring application as well.
CDI is not coupled to JEE - it can be used in SE. It is also a widely used standard, so it would be good to support it.