[jboss-user] [JBoss Seam] - Re: Start quartz cron when Seam apps is up

cavani do-not-reply at jboss.com
Tue Jan 15 06:29:08 EST 2008


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



More information about the jboss-user mailing list