<html><head></head><body bgcolor="#FFFFFF"><div>+1 but i would argue a true crud app would want this too. To me cdi is a core development paradigm, it's hard for me to see where you would not want it (di, events,etc) in nearly any ee6+ app. <br><br></div><div><br>On Aug 3, 2012, at 5:42 PM, Jason Porter <<a href="mailto:lightguard.jp@gmail.com">lightguard.jp@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>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.<br>
<br><div class="gmail_quote">On Fri, Aug 3, 2012 at 2:20 PM, Anil Saldhana <span dir="ltr"><<a href="mailto:Anil.Saldhana@redhat.com" target="_blank">Anil.Saldhana@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Pete,<br>
I like your quickstart.<br>
<br>
A question I have is if a developer is writing a REST based app, does he<br>
need JAX-RS and CDI or just JAX-RS with JPA? I am not clear on the need<br>
for CDI here.<br>
<br>
I hope you can elaborate on this question.<br>
<br>
Regards,<br>
Anil<br>
<div class="HOEnZb"><div class="h5"><br>
On 08/03/2012 01:36 PM, Pete Muir wrote:<br>
> Hi all<br>
><br>
> I just did a first cut at a simple quickstart showing how you can use:<br>
><br>
> * DeltaSpike Authorization<br>
> * CDI<br>
> * JAX-RS<br>
> * DeltaSpike exception handling<br>
><br>
> to restrict access to a REST resources, and do something with the AccessDeniedException other than just rethrow it.<br>
><br>
> Please take a look:<br>
><br>
> <a href="https://github.com/pmuir/quickstart/tree/deltaspike-authorization/deltaspike-authz" target="_blank">https://github.com/pmuir/quickstart/tree/deltaspike-authorization/deltaspike-authz</a><br>
><br>
> Known issues:<br>
><br>
> * I'm not handling bad responses in the UI at all. Please tell me what to do someone :-)<br>
> * The README isn't done<br>
><br>
><br>
_______________________________________________<br>
security-dev mailing list<br>
<a href="mailto:security-dev@lists.jboss.org">security-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/security-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/security-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jason Porter<br><a href="http://lightguard-jp.blogspot.com" target="_blank">http://lightguard-jp.blogspot.com</a><br><a href="http://twitter.com/lightguardjp" target="_blank">http://twitter.com/lightguardjp</a><br>
<br>Software Engineer<br>Open Source Advocate<br>Author of Seam Catch - Next Generation Java Exception Handling<br><br>PGP key id: 926CCFF5<br>PGP key available at: <a href="http://keyserver.net" target="_blank">keyserver.net</a>, <a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>security-dev mailing list</span><br><span><a href="mailto:security-dev@lists.jboss.org">security-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/security-dev">https://lists.jboss.org/mailman/listinfo/security-dev</a></span><br></div></blockquote></body></html>