<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 <X> into the account, for example <br><br><font size="-1">
<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><<a href="http://docs.jboss.org/cdi/api/1.0/javax/enterprise/inject/spi/ProcessManagedBean.html" title="type parameter in ProcessManagedBean">X</a>></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>
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" method decleration as<br><br>public <T> Bean<T> 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 <pmuir@redhat.com><br><b><span style="font-weight: bold;">To:</span></b> Gurkan Erdogdu <gurkanerdogdu@yahoo.com><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<X> Container Lifecycle Event Class<br></font><br>I talked to Carlo on IRC and we worked out the issue:<br><br>ProcessBean<X> offers a method getBean() which returns Bean<X>. Bean<X> has a method of type create() which returns an X. If we were to have ProcessSessionBean<X> extend ProcessManagedBean<X> 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>> 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>> <br>> Pzt, 13 Haz 2011 14:23 EEST
tarihinde Pete Muir şöyle yazdı:<br>> <br>>> 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>>> <br>>> On 13 Jun 2011, at 11:46, Gurkan Erdogdu wrote:<br>>> <br>>>> Hello,<br>>>> <br>>>> In the 1.0 specification, Chapter 11.5.8, ProcessSessionBean<X> container event class was defined as<br>>>> <br>>>> public interface ProcessSessionBean<X> extends ProcessManagedBean<Object> {<br>>>> public String getEjbName();<br>>>> public SessionBeanType getSessionBeanType();<br>>>> }<br>>>> <br>>>> As I commented in <a href="https://issues.jboss.org/browse/CDITCK-215" target="_blank">https://issues.jboss.org/browse/CDITCK-215</a>, it is more accurate to define this
interface as<br>>>> <br>>>> public interface ProcessSessionBean<X> extends ProcessManagedBean<X>{<br>>>> ....<br>>>> }<br>>>> <br>>>> WDYT?<br>>>> <br>>>> --Gurkan Erdogdu<br>>>> Founder and PMC Chair, Apache OpenWebBeans<br>>>> _______________________________________________<br>>>> cdi-dev mailing list<br>>>> <a ymailto="mailto:cdi-dev@lists.jboss.org" href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>>>> <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>>> <br>> <br><br></div></div>
</div></body></html>