<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:8pt"><div>This is not so logical. Because, main reason of using the ProcessSessionBean event is to observe "Session Bean Class" registration, not the observe for the local interfaces. <br><br>Moreover, other methods in the interface hierarchy of "ProcessSessionBean" gets &lt;X&gt; into the account, for example <br><br><font size="-1">&nbsp;
<code><a href="http://docs.jboss.org/cdi/api/1.0/javax/enterprise/inject/spi/AnnotatedType.html" title="interface in javax.enterprise.inject.spi">AnnotatedType</a>&lt;<a href="http://docs.jboss.org/cdi/api/1.0/javax/enterprise/inject/spi/ProcessManagedBean.html" title="type parameter in ProcessManagedBean">X</a>&gt;</code></font>
<code><b><a href="http://docs.jboss.org/cdi/api/1.0/javax/enterprise/inject/spi/ProcessManagedBean.html#getAnnotatedBeanClass%28%29">getAnnotatedBeanClass</a></b>()</code>

<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <a href="http://docs.jboss.org/cdi/api/1.0/javax/enterprise/inject/spi/AnnotatedType.html" title="interface in javax.enterprise.inject.spi"><code>AnnotatedType</code></a> representing
 the bean class.<br><br>Therefore, it is more convenient to change "ProcessManagedBean getBean"&nbsp; method&nbsp; decleration as<br><br>public &lt;T&gt; Bean&lt;T&gt; getBean(); where T is the local/local view interface of the session bean.<br></div><div style="font-family:arial, helvetica, sans-serif;font-size:8pt"><br>--Gurkan<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> Pete Muir &lt;pmuir@redhat.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> cdi-dev@lists.jboss.org; marina.vatkina@sun.com; david.blevins@gmail.com; cdewolf@redhat.com; jpai@redhat.com<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, June 14, 2011 12:56:01 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: Yan:: Re: [cdi-dev]
 About ProcessSessionBean&lt;X&gt; Container Lifecycle Event Class<br></font><br>I talked to Carlo on IRC and we worked out the issue:<br><br>ProcessBean&lt;X&gt; offers a method getBean() which returns Bean&lt;X&gt;. Bean&lt;X&gt; has a method of type create() which returns an X. If we were to have ProcessSessionBean&lt;X&gt; extend ProcessManagedBean&lt;X&gt; then this would imply that you can create something of type, which in the case of a session bean is the bean class (which can't be created for EJBs with local or remote business interfaces). So ProcessSessionBean is correct as is.<br><br>Carlo suggested we might want a "ProcessView" event for EJBs which fired for each EJB view that was registered.<br><br>On 13 Jun 2011, at 19:30, Gurkan Erdogdu wrote:<br><br>&gt; Pete i think that this is not related with the local interfaces. ProcessSessionBean event is fired for every X where X is a session bean class<br>&gt; <br>&gt; Pzt, 13 Haz 2011 14:23 EEST
 tarihinde Pete Muir şöyle yazdı:<br>&gt; <br>&gt;&gt; I'm not actually sure, as X always refers to the bean class, rather than anything to do with the local interfaces. Any EJB expert (cc'ing Marina, David, Carlo, Jaikiran :-) able to shed light?<br>&gt;&gt; <br>&gt;&gt; On 13 Jun 2011, at 11:46, Gurkan Erdogdu wrote:<br>&gt;&gt; <br>&gt;&gt;&gt; Hello,<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; In the 1.0 specification, Chapter 11.5.8, ProcessSessionBean&lt;X&gt; container event class was defined as<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; public interface ProcessSessionBean&lt;X&gt; extends ProcessManagedBean&lt;Object&gt; {<br>&gt;&gt;&gt;&nbsp; public String getEjbName();<br>&gt;&gt;&gt;&nbsp;  public SessionBeanType getSessionBeanType();<br>&gt;&gt;&gt; }<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; As I commented in <a href="https://issues.jboss.org/browse/CDITCK-215" target="_blank">https://issues.jboss.org/browse/CDITCK-215</a>, it&nbsp; is more accurate to define this
 interface as<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; public interface ProcessSessionBean&lt;X&gt; extends ProcessManagedBean&lt;X&gt;{<br>&gt;&gt;&gt; ....<br>&gt;&gt;&gt; }<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; WDYT?<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; --Gurkan Erdogdu<br>&gt;&gt;&gt; Founder and PMC Chair, Apache OpenWebBeans<br>&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt; cdi-dev mailing list<br>&gt;&gt;&gt; <a ymailto="mailto:cdi-dev@lists.jboss.org" href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>&gt;&gt; <br>&gt; <br><br></div></div>



</div></body></html>