[jboss-user] [JBoss Seam] - @Startup not working

maniappan do-not-reply at jboss.com
Tue May 22 10:51:44 EDT 2007


I am trying to start a scheduler when my application starts up. 

  | @Entity
  | @Name("mySchedule")
  | @Table(name="my_schedule")
  | @Scope(ScopeType.SESSION)
  | @Startup
  | public class MySchedule
  |     implements Serializable,
  | {
  | 
  |  public void MySchedule()
  | {
  | MyScheduleHome msh = (MyScheduleHome) Component.getInstance("myScheduleHome");
  | msh.Schedule();
  | log.debug("Timer activated");
  | }
  | //Rest of the getters/setters for table.
  | ...
  | }
  | 
I invoked the Schedule from one of my other application object and it worked. I want to call Schedule during application startup and don't see it being invoked.

I don't see any error or information in the log[in Debug mode] related to the @Startup.

What could be the issue here?


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

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



More information about the jboss-user mailing list