Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 26048 invoked from network); 9 Feb 2011 08:50:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2011 08:50:15 -0000 Received: (qmail 74809 invoked by uid 500); 9 Feb 2011 08:50:11 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 74576 invoked by uid 500); 9 Feb 2011 08:50:08 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 74567 invoked by uid 99); 9 Feb 2011 08:50:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Feb 2011 08:50:07 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sslavic@gmail.com designates 74.125.83.45 as permitted sender) Received: from [74.125.83.45] (HELO mail-gw0-f45.google.com) (74.125.83.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Feb 2011 08:50:02 +0000 Received: by gwaa12 with SMTP id a12so3212023gwa.18 for ; Wed, 09 Feb 2011 00:49:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=rxC4TShu26sOVjesi9UlAjsTIPKEPCw2ZIvOiQDQdww=; b=eqB7Ghi79HdFtEG7ILtA62xkf1dbDcLmo0H0R7lmx4yIz9luFodX2dO/Kb/edZ4Ejl eE3w42jjllxXLTODkEFVhkHwi7rGdEGJVXGImXwk+8DOUs8DjVaJ6v3s/hsOOVEtd1fY 8qU5MZYcZHsReGJDiKgWYsZBCnxnvkuGjMbhc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=IInfnkktRtSiToFFS/hk4iiuJvxigylfgMYcAm8iBCg1sCAArVJCJ3eTYvxcYkfZYO hXs30CjAwLb4qCVVbXLvpZz6eTUQiYQu4UaKLmPPjkSzQ8bThKOri1fdSDEetDE+zUxJ ohFZhDXkc65mxoV9kKZowa28OIHT2V60j0bjE= MIME-Version: 1.0 Received: by 10.90.67.10 with SMTP id p10mr1142300aga.35.1297241381232; Wed, 09 Feb 2011 00:49:41 -0800 (PST) Received: by 10.91.137.11 with HTTP; Wed, 9 Feb 2011 00:49:41 -0800 (PST) In-Reply-To: References: <4D51AD18.6060302@christopherschultz.net> Date: Wed, 9 Feb 2011 09:49:41 +0100 Message-ID: Subject: Re: Servlet 3.0, @WebFilter and ordering From: =?UTF-8?Q?Stevo_Slavi=C4=87?= To: Tomcat Users List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 w= rote: > On Wed, Feb 9, 2011 at 7:46 AM, Konstantin Kolinko > wrote: >> 2011/2/8 Christopher Schultz : >>> On 2/8/2011 4:31 AM, Stevo Slavi=C4=87 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 spe= c. >> >> 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=C3=A9my > > --------------------------------------------------------------------- > 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