Antonin Stefanutti So if I understand it correctly the Camel CDI has its own shutdown hook and it might happen that Weld SE shutdown hook is called before this one. And the Camel CDI shutdown still attempts to use CDI inside its shutdown hook. In any case, we will add this option. Since you're using DeltaSpike to initialize the container you don't have direct access to the Weld/WeldContainer instances. So we could add a system property to allow to skip the shutdown hook registration. Would it be usable for your use case?
|