sorry, I show you half side of code (timed event generator), so yes... and this
name was a typo.... should be "someEvent"... you must set observer over some
public method on any seam component.
In my case, it is on another component that it is SLSB:
| @Local
| public interface Handler
| {
| void doSomething();
| }
|
| @Name("xxx")
| @Stateless
| public HandlerBean implements Handler
| {
|
| // ...
|
| @Observer("someEvent")
| public void doSomething()
| {
| // ...
| }
| }
|
That way, the business logic code stay with EJB...
Thanks,
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120011#4120011
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120011
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user