tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stevo Slavić <ssla...@gmail.com>
Subject Re: Servlet 3.0, @WebFilter and ordering
Date Wed, 09 Feb 2011 08:49:41 GMT
Thanks everyone,

Just wish there was an "Ordered" interface, or annotation, or
attribute of @WebXXX annotations to which ordering can be applied, so
that web.xml is not needed for such IMO basic feature.

Regards,
Stevo.

On Wed, Feb 9, 2011 at 8:58 AM, Remy Maucherat <remy.maucherat@gmail.com> wrote:
> On Wed, Feb 9, 2011 at 7:46 AM, Konstantin Kolinko
> <knst.kolinko@gmail.com> wrote:
>> 2011/2/8 Christopher Schultz <chris@christopherschultz.net>:
>>> On 2/8/2011 4:31 AM, Stevo Slavić wrote:
>>>> I don't see support for
>>>> ordering in @WebFilter annotation. Am I missing something?
>>>
>>> I don't see anything that would allow an ordering to be specified.
>>>
>>
>> Ordering is discussed in chapters 8.2.2 and 8.2.3 of the servlet 3.0 spec.
>>
>> In 8.2.3 it is explicitly written:
>> "As described above, when using annotations to define the listeners,
>> servlets and filters, the order in which they are invoked is
>> unspecified"
>
> Well, but it is still defined a bit by the ordering of the JARs. But
> within the JAR, the order of processing of @WebFilter is undefined,
> which seems quite logical to me.
> (If you need ordering, use a SCI or listener and add the filters
> programmatically)
>
> Rémy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message