[javaee-spec users] Re: [jsr342-experts] Re: Modularity in Java EE 7

From: Pete Muir <>
Date: Sun, 23 Oct 2011 18:07:45 +0100

Sorry for the delay on this, I thought my messages were getting through but on talking to Linda, it appears they never arrived ;-)
On 18 Oct 2011, at 00:25, Bill Shannon wrote:

>> * Redefining Servlets, etc as managed beans -- the most tantalizing
>> benefits to this is being able to use the CDI SPI in Servlets and using
>> @Alternative/_at_Interceptor throughout all Java EE components.
> You should already be able to use the CDI SPI in Servlets, right?
> What prevents that currently?

Reza is proposing that the CDI SPI, which can be used to alter the annotations seen on classes, methods, fields, parameters and constructors could be honoured by other Java EE components - IOW these other components would see the annotations as altered by a user application.

This is a very powerful idea, but there are concerns from our team about the performance implications. Jason has more details here.