[cdi-dev] Observer methods in Java EE

Jozef Hartinger jharting at redhat.com
Thu Dec 19 04:04:35 EST 2013


On the session bean class' method's event parameter.

On 12/18/2013 11:00 PM, Laird Nelson wrote:
> Hello; the CDI specification says that an observer method is a
>
>         non-abstract method of a managed bean class or session bean
>         class (or of an extension, as defined in [init_events]
>         <http://docs.jboss.org/cdi/spec/1.1/cdi-spec.html#init_events>).
>         An observer method may be either static or non-static. *If the
>         bean is a session bean, the observer method must be either a
>         business method of the EJB *or a static method of the bean class.
>
>
> If I have a business interface that my SLSB implements that is 
> intended to be an observer method, must @Observes be present on the 
> interface's method's event parameter, the bean class' method's event 
> parameter, or both?
>
> Thanks,
> Best,
> Laird
>
> -- 
> http://about.me/lairdnelson
>
>
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/cdi-dev/attachments/20131219/a1525035/attachment-0001.html 


More information about the cdi-dev mailing list