Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [servlet-dev] @Priority for ServletContainerInitializer



On Tue, 9 Jun 2020 at 11:01, Mark Thomas <markt@xxxxxxxxxx> wrote:
Filters is a particularly hard problem. Listeners and SCIs are -
hopefully - easier.

For SCIs can't we say:

1) Container provided SCIs are loaded first.

2) SCIs are then loaded as per the order of the fragments with which
   they are associated.

3) SCIs from the same fragment are loaded in the order they are listed
   in META-INF/services/jakarta.servlet.ServletContainerInitializer

That is simpler and I think sufficient.
I like that this proposal is based on the current fragment ordering rather than adding a new mechanism.
I also agree that the ABAB problem should be resolved by splitting the jars.

So listeners would then also be added in the order of their declaration in fragments, followed by the order they are programmatically added?

cheers
--

Back to the top