Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2051

Add option to deactivate shutdown hook in Weld SE

    Details

      Description

      Since WELD-1915, Weld SE is always registering a shutdown hook. This is beneficial for the end-user application that doesn't have to care about that concern.

      However, for frameworks and libraries that integrate with Weld SE, that leads to conflicting shutdown lifecycle as they may have their own shutdown hook.

      For example, that breaks DeltaSpike container control API whose Weld adapter shutdown method becomes useless in the context of a shutdown hook sequence. Incidentally, the Camel CDI component MainSupport is broken has Camel has its own shutdown hook and cannot control the Weld container anymore.

      A better approach would be to enable the deactivation of the Weld SE shutdown hook as this is a common practice.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mkouba Martin Kouba
                  Reporter:
                  stefanutti Antonin Stefanutti
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: