<html><head></head><body bgcolor="#FFFFFF"><div>IMO both approaches are valid in different situations, and it entirely depends on the app. If I have multiple view layers (eg jsf and jax rs I will likely want some sort of controller bean betweeny business layer and jsf, so as to not let jsf concerns leak. Otoh if it was just a web app with a jsf front end only, maybe I would dispose of this layer.<br><br>--<div>Pete Muir</div><div><a href="http://in.relation.to/Bloggers/Pete">http://in.relation.to/Bloggers/Pete</a></div></div><div><br>On 22 Dec 2011, at 11:36, "John D. Ament" &lt;<a href="mailto:john.d.ament@gmail.com">john.d.ament@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>I tried this a few times recently.&nbsp; the main issue that pops up is that the EJB timeouts and WEB timeouts in the platform do not sync up.&nbsp; so if you're idle on a page for 5 minutes, your stateful EJB disappears, unless you have someone change container config.<br>
<br><div class="gmail_quote">On Thu, Dec 22, 2011 at 5:49 AM, José Rodolfo Freitas <span dir="ltr">&lt;<a href="mailto:joserodolfo.freitas@gmail.com">joserodolfo.freitas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
CDI created the possibility to reach any bean in the container from a JSF view, encouraging a closer approach between ejb and jsf (or any cdi bean and jsf), which can potentially lead to a simpler application design. I think that is great!<div>

<br></div><div>However, I'm observing that this new programming model has been experimenting user resistance. The "traditional" way of doing things, using a "ViewBean" accessing a&nbsp;Stateless Service seems to be the&nbsp;</div>

<div>more legit.</div><div><br></div><div>What do you think about this? I'd like to discuss best practices around it as I see it's on the core of almost every web application design.&nbsp;</div><div><br></div><div><br>

</div><div><br></div><div><div><br></div></div>
<br>_______________________________________________<br>
seam-dev mailing list<br>
<a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
<br></blockquote></div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>cdi-dev mailing list</span><br><span><a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/cdi-dev">https://lists.jboss.org/mailman/listinfo/cdi-dev</a></span><br></div></blockquote></body></html>