I&#39;ve found this a fascinating thread. I didn&#39;t know that Spring 3.0 had many of the same features as CDI.<br><br>So I can intelligently recommend either Spring 3 or CDI, I&#39;d like to know what are the advantages and disadvantages of each. I read the comments on TSS (&lt;<a href="http://www.theserverside.com/news/thread.tss?thread_id=58858#330454">http://www.theserverside.com/news/thread.tss?thread_id=58858#330454</a>&gt;), and from that thread I surmised that Spring 3.0 and CDI were similar, but I don&#39;t understand the differences. I appreciate, btw, the much more cordial discussion Dan and Jeremy have had on this list.<br>
<br>Dan and Jeremy, it&#39;d be great if you guys could let us know what the pros and cons of each are.<br><br>Thanks,<br><br><br>david<br><br><div class="gmail_quote">2009/12/19 Dan Allen <span dir="ltr">&lt;<a href="mailto:dan.j.allen@gmail.com">dan.j.allen@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Jeremy,<br><br><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 08ex; padding-left: 1ex;">
<div><div><div><div>Perhaps one of the first things we should do is update the &quot;Get Started&quot; on <a href="http://www.javaserverfaces.org" target="_blank">www.javaserverfaces.org</a> to show both options.  This would require both a Weld archetype (which I think you&#39;ve been working on?) and one for Spring 3 (I could work on providing one).</div>

</div></div></div></blockquote></div><div><br>We must have been on the same wavelength because that&#39;s exactly what I was working on while you were writing back. I&#39;ve split the page into three parts, explaining that there are three &quot;packages&quot; so to speak. I&#39;ve left the Spring section open. If you want to fill that in with an archetype of your choice, that would be great. I&#39;ve granted you edit access. (You have to tolerate the painfully slow Google Sites editor. It takes some patience to tame the bullets).<br>

<br>We can clean up some of the text throughout the page, I was just throwing down some structure quickly.<br> </div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div><div><div><div><br></div><blockquote type="cite"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Agreed, in this particular example, I would not recommend this approach.  What about @ViewScoped though?  That&#39;s one of the more useful pieces of JSF 2 in my opinion.  I don&#39;t believe there is an out-of-the-box CDI-equivalent, right?  I would assume it&#39;s not hard to implement a custom @ViewScoped that CDI would recognize?<br>


</blockquote><div><br>There isn&#39;t a CDI equivalent of @ViewScoped in the CDI spec, but Weld/Seam will be providing a portable extension, hopefully getting weaved back into a revision of the spec. We shouldn&#39;t have to revert to @javax.faces.ManagedBean just to get this feature.<br>

</div></div></blockquote><div><br></div></div><div>Right, and we can provide a similar extension in Spring, but I&#39;m wondering if we can find some sort of shared approach...</div></div></div></div></blockquote></div><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">

<div>...<br></div></blockquote><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><div><div>To be fair, we aren&#39;t yet providing any out-of-the-box implementations of JSR-330&#39;s @Scope other than the @Singleton that is required by by the spec.  Maybe this is an opportunity for further collaboration, outside of the scope of the EG.  It would be really cool if we could establish a single common and complete set of scope annotations as portable extensions usable in both Seam and Spring...I&#39;m not entirely certain yet how technically feasible this would be...just something to think about.<br>

</div></div></div></div></blockquote></div><div><br>Sounds like an action item for collaboration in 2010!<br> <br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div><div><div><br><blockquote type="cite"><div class="gmail_quote"><div>I&#39;m glad that we can communicate with friendly exchanges and I always
look forward to getting your perspective. Frankly, I think that&#39;s what
defines this EG, as Andy so elegantly pointed out in his blog.<br></div></div>

</blockquote><br></div></div><div>Indeed, it is quite refreshing to be able to have such discussions without things degenerating into TSS-style bickering.  As can seen by taking a look at some of the arguments on the JSR-330 list, for example, EG&#39;s are not by rule free of such nonsense.  I am thankful for your open-ness and for Ed and everyone else&#39;s roles in fostering such an environment, and look forward to seeing it continue.</div>

</div></div></blockquote></div><div><br>+1<br><br>On that note, Happy Holidays and New Year. I&#39;m looking forward to 2010!<br><font color="#888888"><br>-Dan<br></font></div></div><div><div></div><div class="h5"><br>-- <br>
Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>
Registered Linux User #231597<br><br><a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br>
<a href="http://www.google.com/profiles/dan.j.allen" target="_blank">http://www.google.com/profiles/dan.j.allen</a><br>

</div></div></blockquote></div><br>