For any sort of application that is non trivial and non-crud, you'll want CDI to be able to wire things up, possibly some domain specific extensions, etc. maybe there's some special things on data insertion that needs to happen, or something along with permission for data retrieval, or perhaps it's an actual function you call and a way into your application. There's certainly a use for CDI with JAX-RS.
Pete,
I like your quickstart.
A question I have is if a developer is writing a REST based app, does he
need JAX-RS and CDI or just JAX-RS with JPA? I am not clear on the need
for CDI here.
I hope you can elaborate on this question.
Regards,
Anil
On 08/03/2012 01:36 PM, Pete Muir wrote:
> Hi all
>
> I just did a first cut at a simple quickstart showing how you can use:
>
> * DeltaSpike Authorization
> * CDI
> * JAX-RS
> * DeltaSpike exception handling
>
> to restrict access to a REST resources, and do something with the AccessDeniedException other than just rethrow it.
>
> Please take a look:
>
> https://github.com/pmuir/quickstart/tree/deltaspike-authorization/deltaspike-authz
>
> Known issues:
>
> * I'm not handling bad responses in the UI at all. Please tell me what to do someone :-)
> * The README isn't done
>
>
_______________________________________________
security-dev mailing list
security-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/security-dev