[jboss-user] [JBoss Seam] - how to terminate @Asynchronous method

tjakopec do-not-reply at jboss.com
Wed Sep 19 05:00:30 EDT 2007


I have @Asynchronous method and everithing is working fine. Now I want to stop calling that method.


  | @AutoCreate
  | @Name("natjecajServis")
  | @Stateless
  | public class NatjecajServisBean  implements NatjecajIServis {
  | @Asynchronous
  | 	public void odradi(@Expiration
  | 	Date date, @IntervalCron
  | 	Long interval, at FinalExpiration Date kraj) {
  | ...
  | }
  | }
  | 

witch is call from another bena when server starts

  | @Stateless
  | @Name("cron")
  | public class CronBean implements  Cron {
  | @In
  | ZaposlenikIServis zaposlenikServis;
  | @Observer("org.jboss.seam.postInitialization")
  | public void postaviIzvodenje() {
  | 		log.info("Set up cron");
  | zaposlenikServis.odradi(...);
  | }
  | }
  | 


So, how to stop calling @Asynchronous method

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085917#4085917

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085917



More information about the jboss-user mailing list