Of course :)<br><br><div class="gmail_quote">On Fri, Apr 9, 2010 at 11:14 AM, Pete Muir <span dir="ltr">&lt;<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I&#39;m not disputing that CDI should provide it there, but Weld is the *reference* implementation of the CDI spec so needs to provide a reference for other people to follow.<br>
<br>
So IOW I would like guidance from the CDI EG that they intend to change it so servlet supports conversations in the next iteration of the CDI spec.<br>
<br>
Does that make some sense?<br>
<div><div></div><div class="h5"><br>
On 9 Apr 2010, at 16:09, Lincoln Baxter, III wrote:<br>
<br>
&gt; I think that limiting the conversation to the JSF lifecycle is a big drawback for out-of-the-box experience -- we should be providing this for the entire servlet lifecycle. I&#39;d argue that it is in the spirit of the new JavaEE 6 spec, which clearly provides injection in Filters, Servlets and Listeners now -- we should be providing Conversation support there as well. Filters and Servlets are still a strong part of Java EE, the core part, in my opinion -- JSF is just one option.<br>

&gt;<br>
&gt; --Lincoln<br>
&gt;<br>
&gt; On Fri, Apr 9, 2010 at 5:57 AM, Pete Muir &lt;<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>&gt; wrote:<br>
&gt; I agree it&#39;s not in direct contradiction, but it doesn&#39;t seem to be in the spirit of the spec either.<br>
&gt;<br>
&gt; On 9 Apr 2010, at 10:52, Nicklas Karlsson wrote:<br>
&gt;<br>
&gt; &gt; We had been discussing with Dan and Lincoln on activating the conversation context for the entire request as it didn&#39;t seem to be a direct contradiction of the spec and Shane needed it for something about the same time so it got committed. I mailed the EG and asked about it but we can revert for now.<br>

&gt; &gt;<br>
&gt; &gt; On Fri, Apr 9, 2010 at 12:13 PM, Pete Muir &lt;<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>&gt; wrote:<br>
&gt; &gt; Guys,<br>
&gt; &gt;<br>
&gt; &gt; This doesn&#39;t seem in line with the spec to me, and I think we should revert it. What is the motivation for doing it?<br>
&gt; &gt;<br>
&gt; &gt; Pete<br>
&gt; &gt;<br>
&gt; &gt; Begin forwarded message:<br>
&gt; &gt;<br>
&gt; &gt; &gt; From: <a href="mailto:weld-commits@lists.jboss.org">weld-commits@lists.jboss.org</a><br>
&gt; &gt; &gt; Date: 1 April 2010 07:48:18 GMT+01:00<br>
&gt; &gt; &gt; To: <a href="mailto:weld-commits@lists.jboss.org">weld-commits@lists.jboss.org</a><br>
&gt; &gt; &gt; Subject: [weld-commits] Weld SVN: r6071 - in core/trunk/impl/src/main/java/org/jboss/weld: servlet and 1 other directory.<br>
&gt; &gt; &gt; Reply-To: <a href="mailto:weld-commits@lists.jboss.org">weld-commits@lists.jboss.org</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Author: <a href="mailto:shane.bryzak@jboss.com">shane.bryzak@jboss.com</a><br>
&gt; &gt; &gt; Date: 2010-04-01 02:48:18 -0400 (Thu, 01 Apr 2010)<br>
&gt; &gt; &gt; New Revision: 6071<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Modified:<br>
&gt; &gt; &gt;   core/trunk/impl/src/main/java/org/jboss/weld/jsf/WeldPhaseListener.java<br>
&gt; &gt; &gt;   core/trunk/impl/src/main/java/org/jboss/weld/servlet/ServletLifecycle.java<br>
&gt; &gt; &gt; Log:<br>
&gt; &gt; &gt; moved conversation setup/teardown out of jsf phase listener into servlet lifecycle (Nik says to blame me if this doesn&#39;t work ;)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Modified: core/trunk/impl/src/main/java/org/jboss/weld/jsf/WeldPhaseListener.java<br>
&gt; &gt; &gt; ===================================================================<br>
&gt; &gt; &gt; --- core/trunk/impl/src/main/java/org/jboss/weld/jsf/WeldPhaseListener.java   2010-03-31 03:21:16 UTC (rev 6070)<br>
&gt; &gt; &gt; +++ core/trunk/impl/src/main/java/org/jboss/weld/jsf/WeldPhaseListener.java   2010-04-01 06:48:18 UTC (rev 6071)<br>
&gt; &gt; &gt; @@ -118,7 +118,7 @@<br>
&gt; &gt; &gt;    private void beforeRestoreView(FacesContext facesContext)<br>
&gt; &gt; &gt;    {<br>
&gt; &gt; &gt;       log.trace(INITIATING_CONVERSATION, &quot;Restore View&quot;);<br>
&gt; &gt; &gt; -      initiateSessionAndConversation(facesContext);<br>
&gt; &gt; &gt; +      //initiateSessionAndConversation(facesContext);<br>
&gt; &gt; &gt;    }<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;    /**<br>
&gt; &gt; &gt; @@ -127,7 +127,7 @@<br>
&gt; &gt; &gt;    private void afterRenderResponse(FacesContext facesContext)<br>
&gt; &gt; &gt;    {<br>
&gt; &gt; &gt;       log.trace(CLEANING_UP_CONVERSATION, &quot;Render Response&quot;, &quot;response complete&quot;);<br>
&gt; &gt; &gt; -      getConversationManager().teardownConversation();<br>
&gt; &gt; &gt; +      //getConversationManager().teardownConversation();<br>
&gt; &gt; &gt;    }<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;    /**<br>
&gt; &gt; &gt; @@ -136,7 +136,7 @@<br>
&gt; &gt; &gt;    private void afterResponseComplete(FacesContext facesContext, PhaseId phaseId)<br>
&gt; &gt; &gt;    {<br>
&gt; &gt; &gt;       log.trace(CLEANING_UP_CONVERSATION, phaseId, &quot;the response has been marked complete&quot;);<br>
&gt; &gt; &gt; -      getConversationManager().teardownConversation();<br>
&gt; &gt; &gt; +      //getConversationManager().teardownConversation();<br>
&gt; &gt; &gt;    }<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;    /**<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Modified: core/trunk/impl/src/main/java/org/jboss/weld/servlet/ServletLifecycle.java<br>
&gt; &gt; &gt; ===================================================================<br>
&gt; &gt; &gt; --- core/trunk/impl/src/main/java/org/jboss/weld/servlet/ServletLifecycle.java        2010-03-31 03:21:16 UTC (rev 6070)<br>
&gt; &gt; &gt; +++ core/trunk/impl/src/main/java/org/jboss/weld/servlet/ServletLifecycle.java        2010-04-01 06:48:18 UTC (rev 6071)<br>
&gt; &gt; &gt; @@ -162,6 +162,7 @@<br>
&gt; &gt; &gt;          request.setAttribute(REQUEST_ATTRIBUTE_NAME, beanStore);<br>
&gt; &gt; &gt;          lifecycle.beginRequest(request.getRequestURI(), beanStore);<br>
&gt; &gt; &gt;          restoreSessionContext(request);<br>
&gt; &gt; &gt; +         conversationManager(request.getSession().getServletContext()).setupConversation(request.getParameter(&quot;cid&quot;));<br>
&gt; &gt; &gt;       }<br>
&gt; &gt; &gt;    }<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; @@ -176,10 +177,12 @@<br>
&gt; &gt; &gt;       {<br>
&gt; &gt; &gt;          return;<br>
&gt; &gt; &gt;       }<br>
&gt; &gt; &gt; -      teardownSession(request);<br>
&gt; &gt; &gt; +<br>
&gt; &gt; &gt; +      conversationManager(request.getSession().getServletContext()).teardownConversation();<br>
&gt; &gt; &gt;       teardownRequest(request);<br>
&gt; &gt; &gt;       lifecycle.getConversationContext().setBeanStore(null);<br>
&gt; &gt; &gt;       lifecycle.getConversationContext().setActive(false);<br>
&gt; &gt; &gt; +      teardownSession(request);<br>
&gt; &gt; &gt;    }<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;    private void teardownSession(HttpServletRequest request)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; weld-commits mailing list<br>
&gt; &gt; &gt; <a href="mailto:weld-commits@lists.jboss.org">weld-commits@lists.jboss.org</a><br>
&gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/weld-commits" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-commits</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; weld-dev mailing list<br>
&gt; &gt; <a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>
&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; ---<br>
&gt; &gt; Nik<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; weld-dev mailing list<br>
&gt; <a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Lincoln Baxter, III<br>
&gt; <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
&gt; <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
&gt; &quot;Keep it Simple&quot;<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com">http://ocpsoft.com</a><br><a href="http://scrumshark.com">http://scrumshark.com</a><br>&quot;Keep it Simple&quot;<br>