Actually I don't get this module

why doing:

servletContextEvent.getServletContext().addListener(CdiServletRequestListener.class);
in a ServletContextListener instead of decorating the request listener
with @WebListener? - think addListener should be a
ServletContainerInitializer method only and not allowed in a
ServletContextListener.

Spec says:

UnsupportedOperationException - if this ServletContext was passed to
the ServletContextListener#contextInitialized method of a
ServletContextListener

+ the request filter itself is just starting/stopping request scope
which can be done by all impl so the gain of using deltaspike here is
not obvious (in particular since we handle less than impl -
@SessionScoped for instance).





Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-08-23 20:51 GMT+02:00 Mark Struberg <[email protected]>:
> Hi!
>
> cdictrl-servlet directly defines cdi-1.0 artifacts. This breaks Weld-1.2 and 
> OWB-2.x.
>
> The whole module is actually pretty weird.
>
> It is a submodule of cdictrl but I seems to have not much to do with cdictrl. 
> Instead it even has dependencies to deltaspike-core...
>
> How do we proceed?
> Sorry that this slipped through our quality control.
>
>
> LieGrue,
> strub

Reply via email to