On Mon, 2010-04-12 at 12:29 +0100, Pete Muir wrote:
On 24 Mar 2010, at 18:30, Remy Maucherat wrote:
> On Wed, 2010-03-24 at 11:00 -0700, Ales Justin wrote:
>> I'm following the weld-dev, no worries. ;-)
>> (although, if I don't reply, then JBossAS dev forum is definitely the place
to reach me)
>>
>> I'll have a look on how this ordering is done.
>> Or Remy might already know this ootb. :-)
>
> Ok, so there are already some default listeners that go first (the
> shared ones from the default web.xml). Do you really need to be before
> these ones ? It's quite simple really, the order is the order of
> declaration in the descriptors, so the first one in web.xml goes first
> (after the ones in the shared web.xml).
I don't think we need to go around/before other JBoss infrastructure listeners as
they don't need to use CDI services. As long as we go before user-specified listeners
we are good.
You can now also modify the shared metadata using a deployer, so you can
do it with nicer looking code.
--
Remy Maucherat <rmaucher(a)redhat.com>
Red Hat Inc