]
Tomas Remes commented on CDI-570:
---------------------------------
Yes I tend to agree with Mark. These are good questions and I am not really sure if we can
specify something like "graceful" shutdown.
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