<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:8pt"><div>Yes, but I think that those are related with EJB specification, not in general like in interceptor specification.&nbsp; <br><br>I think that PostActivate and PrePassivate may also moved to interceptor specification because they may be used in different contexts or even in different specifications. They are not solely related with EJB statefull session beans.<br><br>Thks;<br><br>--Gurkan<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Gavin King &lt;gavin.king@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> jsr-299-eg@jcp.org<br><b><span style="font-weight: bold;">Cc:</span></b>
 weld-dev@lists.jboss.org<br><b><span style="font-weight: bold;">Sent:</span></b> Sat, January 9, 2010 5:26:37 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [jsr-299-eg] About @PostActivate and @PrePassivate<br></font><br>Read EJB 3.1 spec section 12.2.<br><br>"In addition to the PostConstruct and PreDestroy callback support<br>required by the Interceptors specificatoin, interceptors associated<br>with Stateful Session Beans may define PostActivate and PrePassivate<br>callbacks."<br><br>On Sat, Jan 9, 2010 at 3:51 AM, Gurkan Erdogdu &lt;<a ymailto="mailto:gurkanerdogdu@yahoo.com" href="mailto:gurkanerdogdu@yahoo.com">gurkanerdogdu@yahoo.com</a>&gt; wrote:<br>&gt; Hi;<br>&gt;<br>&gt; @PostActivate and @PrePassivate annotations are defined on the EJB<br>&gt; specification. Those annotations are not defined in the Interceptor<br>&gt; specification. But in CDI specification, chapter 11.1.2 specifices the using<br>&gt; of PRE_PASSIVATE and
 POST_ACTIVATE interception types.<br>&gt;<br>&gt; I think that this is wrong because those annotations must be defined on<br>&gt; ManagedBean with passivating capable not in interceptor class.<br>&gt;<br>&gt; For example;<br>&gt;<br>&gt; In TCK , it tests<br>&gt;<br>&gt; Interceptor interceptor = get Some Interceptors....<br>&gt; interceptor.intercept(InterceptionType.PRE_PASSIVATE or POST_ACTIVATE) is<br>&gt; not meaningful, because interceptors may not define PRE_PASSIVATE or<br>&gt; POST_ACTIVATE methods.<br>&gt;<br>&gt; I think that PRE_PASSIVATE and POST_ACTIVATE must be removed from<br>&gt; InterceptionType enum.<br>&gt;<br>&gt; --Gurkan<br>&gt; ________________________________<br>&gt; Yahoo! Türkiye açıldı!<br>&gt; Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de!<br><span>&gt; <a target="_blank" href="http://www.yahoo.com.tr">www.yahoo.com.tr</a></span><br><br><br><br>-- <br>Gavin King<br><a ymailto="mailto:gavin.king@gmail.com"
 href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a><br><a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br><a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br><a href="http://seamframework.org" target="_blank">http://seamframework.org</a><br></div></div>
<!-- cg18.c1.mail.mud.yahoo.com compressed/chunked Sat Jan  9 12:36:55 PST 2010 -->
</div><br>



      <hr size="1"><FONT face=Arial size=-1>Yahoo! Türkiye açıldı!<br>
Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye&#39;de!<br><a href="http://tr.yahoo.com/">www.yahoo.com.tr</a></font></body></html>