[cdi-dev] [JBoss JIRA] (CDI-570) Weld shutdown in Java SE during asynch event calling

Martin Kouba (JIRA) issues at jboss.org
Wed Nov 11 03:29:00 EST 2015


    [ https://issues.jboss.org/browse/CDI-570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13127607#comment-13127607 ] 

Martin Kouba commented on CDI-570:
----------------------------------

Well, event payload mutability/synchronization is also a user problem. I think it's a kind of problem users should be aware of when using async events. +1 for adding some (probably non-normative) info about this stuff.

> Weld shutdown in Java SE during asynch event calling
> ----------------------------------------------------
>
>                 Key: CDI-570
>                 URL: https://issues.jboss.org/browse/CDI-570
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Events
>    Affects Versions: 2.0-EDR1
>            Reporter: Michael Remijan
>
> In a Java SE environment, there is no way to tell if there are async observers are in the process of being called when the time comes for the JVM to shut down.  My assumption is the JVM should wait until all the async observers are complete before shutting down.  Or perhaps this behavior can be configured through the CDI object, system property, or beans.xml 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the cdi-dev mailing list