Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
Description
Wildlfy 11.0.0
Bean X with @Startup and @Singleton annotations make long running task, Y bean (also with @Startup and @Singleton) @DependsOn bean X. Hovewer, during container shutdown (Ctrl+C) bean X is destroying first and closing resources, causing bean Y fall to error.
Expected behavior:
JSR-345: The container ensures that all singleton session beans with which a singleton session bean has a DependsOn relationship are still available during the PreDestroy callback.
So, bean Y must be destroyed first, then bean X.