<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Hi;<br><br>org/jboss/jsr299/tck/tests/context/dependent/DependentContextTest.java, <br><br><pre>   @Test(groups = { "contexts", "observerMethod" })<br>   @SpecAssertion(section = "8.3", id = "g")<br>   public void testContextIsActiveWhenInvokingObserverMethod()<br>   {<br>      getCurrentManager().fireEvent(new HorseInStableEvent());<br>      assert HorseStable.isDependentContextActive();<br>   }</pre><br><pre>   @Test(groups = { "contexts", "observerMethod" })<br>   @SpecAssertion(section = "8.3", id = "i")<br>   public void testContextIsActiveWhenInvokingObserver()<br>   {<br>      getCurrentManager().fireEvent(new HorseInStableEvent());<br>      assert ApplicationHorseStable.isDependentContextActive();<br>   }</pre>I think that after the Observer#notify method [calling the HorseStable or
 ApplicationHorseStable observer methods], Dependent context will be destroyed.<br><br>Gurkan<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> David Allen &lt;drallendc@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Gurkan Erdogdu &lt;gurkanerdogdu@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> Gavin King &lt;gavin@hibernate.org&gt;; openwebbeans-dev@incubator.apache.org; webbeans-dev@lists.jboss.org<br><b><span style="font-weight: bold;">Sent:</span></b> Monday, March 2, 2009 12:36:35 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [webbeans-dev] TCK Tests - Dependent Context Activation<br></font><br>
On Sun, 2009-03-01 at 23:02 -0800, Gurkan Erdogdu wrote:<br>&gt; Thanks for answering Gavin. <br>&gt; Then, we can not pass the TCK test if we use Observer#notify :)<br>&gt; <br>Which test in the TCK are you referring to?<br><br>&gt; <br>&gt; <br>&gt; ______________________________________________________________________<br>&gt; From: Gavin King &lt;<a ymailto="mailto:gavin@hibernate.org" href="mailto:gavin@hibernate.org">gavin@hibernate.org</a>&gt;<br>&gt; To: Gurkan Erdogdu &lt;<a ymailto="mailto:gurkanerdogdu@yahoo.com" href="mailto:gurkanerdogdu@yahoo.com">gurkanerdogdu@yahoo.com</a>&gt;<br>&gt; Cc: <a ymailto="mailto:webbeans-dev@lists.jboss.org" href="mailto:webbeans-dev@lists.jboss.org">webbeans-dev@lists.jboss.org</a><br>&gt; Sent: Sunday, March 1, 2009 11:25:06 PM<br>&gt; Subject: Re: [webbeans-dev] TCK Tests - Dependent Context Activation<br>&gt; <br>&gt; Well, the spec says "observer method". It doesn't say anything about<br>&gt; other
 observers. So It would be perfectly fine to do it in the<br>&gt; notify() method, but not wrong to do it form fireEvent().<br>&gt; <br>&gt; On Sat, Feb 28, 2009 at 4:01 PM, Gurkan Erdogdu<br>&gt; &lt;<a ymailto="mailto:gurkanerdogdu@yahoo.com" href="mailto:gurkanerdogdu@yahoo.com">gurkanerdogdu@yahoo.com</a>&gt; wrote:<br>&gt; &gt; Hi;<br>&gt; &gt;<br>&gt; &gt; Specification states that&nbsp; depending context is active --&gt; "while an<br>&gt; &gt; observer method is invoked", but it does not state that where is the<br>&gt; &gt; starting point for the activation. In the TCK tests, it is activated<br>&gt; on the<br>&gt; &gt; Manager#fireEvent.<br>&gt; &gt;<br>&gt; &gt; But currently in the OpenWebBeans project, we activate the Dependent<br>&gt; Context<br>&gt; &gt; at the start of the Observer#notify method.<br>&gt; &gt;<br>&gt; &gt; Which one is correct?<br>&gt; &gt;<br>&gt; &gt; Thanks;<br>&gt; &gt;<br>&gt; &gt; /Gurkan<br>&gt; &gt;<br>&gt;
 &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; webbeans-dev mailing list<br>&gt; &gt; <a ymailto="mailto:webbeans-dev@lists.jboss.org" href="mailto:webbeans-dev@lists.jboss.org">webbeans-dev@lists.jboss.org</a><br>&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/webbeans-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/webbeans-dev</a><br>&gt; &gt;<br>&gt; &gt;<br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Gavin King<br>&gt; <a ymailto="mailto:gavin.king@gmail.com" href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a><br>&gt; <a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br>&gt; <a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br>&gt; <a href="http://seamframework.org" target="_blank">http://seamframework.org</a><br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; webbeans-dev
 mailing list<br>&gt; <a ymailto="mailto:webbeans-dev@lists.jboss.org" href="mailto:webbeans-dev@lists.jboss.org">webbeans-dev@lists.jboss.org</a><br>&gt; <a href="https://lists.jboss.org/mailman/listinfo/webbeans-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/webbeans-dev</a><br><br></div></div></div><br>

      </body></html>