Re: doubt about the web.xml
Guillermo González de Agüero
Hi Daniel,toggle quoted messageShow quoted text
The @RolesAllowed annotation is not defined by JSR 375 and there was sadly not enough time to better integrate with it or provide a better alternative.
For now, @RolesAllowed are only portable on EJB components, although some servers such as Payara support them on any CDI bean AFAIK. The simpler way to use it is to annotate your resources @Stateless, or creating an interceptor and a CDI extension to tranform @RolesAllowed into an interceptor binding annotation.
Creating such extensions was greatly simplified on CDI 2.0.
El mié., 29 ago. 2018 16:12, Daniel Dias <daniel.dias.analistati@...> escribió: