You seem to know that you are doing so I&#39;ll leave the ball with you ;-)<div><br></div><div>The situation we&#39;re aming for is that when people throw in web.xml:s and web-fragment.xmls and @WebListener:s, the order (of course) follows that of the Servlet specification but we have sneaked in the WeldListener before that. Now how to guarantee portability, that this has also been done when throwing the same application in another appserver is another thing...<br>
<br><div class="gmail_quote">On Wed, Mar 24, 2010 at 9:04 PM, Remy Maucherat <span dir="ltr">&lt;<a href="mailto:rmaucher@redhat.com">rmaucher@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Wed, 2010-03-24 at 11:41 -0700, Ales Justin wrote:<br>
&gt; Yes. :-)<br>
&gt;<br>
&gt; I guess the order from web.xml is then the same as in ServletMetaData (or whatever data we use to hold the listeners metadata)?<br>
&gt; --&gt; since we don&#39;t use web.xml, but add Weld listener programmatically in a deployer<br>
<br>
</div>Well, yes and no. The list of listeners that JBossWebMetaData has is<br>
ordered (and you can replace it, of course :) ), but there&#39;s another<br>
JBossWebMetaData for the shared web.xml that goes before it.<br>
<br>
In the shared stuff, there&#39;s:<br>
- a security listener which does stuff (ask Anil)<br>
- two JSF listeners<br>
<div class="im"><br>
&gt; Is there a way to know which listeners come from default web.xml?<br>
<br>
</div>Hum, no :( Now that you mention it, maybe I could do that &quot;shared stuff&quot;<br>
handling in its own deployer, taking the &quot;final&quot; JBossWebMetaData and<br>
merging it with the shared JBossWebMetaData to get a &quot;final final&quot;<br>
JBossWebMetaData.<br>
<div class="im"><br>
&gt; So we can place our Weld listener just after those.<br>
<br>
</div>Hopefully.<br>
<div><div></div><div class="h5"><br>
--<br>
Remy Maucherat &lt;<a href="mailto:rmaucher@redhat.com">rmaucher@redhat.com</a>&gt;<br>
Red Hat Inc<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>---<br>Nik<br>
</div>