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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to